Re: changing THistPainter behaviour

From: Nico De Simone <nicola.desimone_at_roma2.infn.it>
Date: Fri, 29 Sep 2006 11:02:04 +0200


On Wed, Sep 27, 2006 at 01:12:20PM +0200, Olivier Couet wrote:
> I just said that hpxpy is generated by hsimple.C... It sits in the file
> hsimple.root once you have executed hsimple.C ... What ticks are you
> talking about ?

The ticks of the axis (TGaxis *a = palette->GetAxis()). I also tried a->SetOptions("S") without. See the attachment.

This is exactly what I'm doing, using ROOT Version 5.10/00e:

.x $ROOTSYS/tutorials/hsimple.C
hpxpy->Draw("colz");
gPad->Update();

// get the palette
TPaletteAxis *palette = \
(TPaletteAxis*)hpxpy->GetListOfFunctions()->FindObject("palette"); TGaxis *a = palette->GetAxis();
a->SetTickSize(0);
a->SetLabelOffset(999);
gPad->Modified();

Thanks,
Nico

palette_ticks.png
Received on Fri Sep 29 2006 - 10:45:16 MEST

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:32:01 MET