Re: changing THistPainter behaviour

From: Nico De Simone <nicola.desimone_at_roma2.infn.it>
Date: Tue, 26 Sep 2006 19:44:22 +0200


On Tue, Sep 26, 2006 at 04:12:52PM +0200, Olivier Couet wrote:
>
> example:
>
> {
> hpxpy->Draw("colz");
> gPad->Update();
>
> // get the palette
> TPaletteAxis *palette =
> (TPaletteAxis*)hpxpy->GetListOfFunctions()->FindObject("palette");
> // remove the palette axis
> TGaxis *a = palette->GetAxis();
> a->SetTickSize(0);
> a->SetLabelOffset(999);
> gPad->Modified();
> // draw a new axis
> TGaxis *gaxis = new
> TGaxis(4.49713,-4.00424,4.49713,3.98305,-1,1,510,"+L");
> gaxis->SetLabelOffset(0.005);
> gaxis->SetLabelSize(0.04);
> gaxis->SetTickSize(0.03);
> gaxis->SetTitleOffset(1);
> gaxis->Draw();
> }
>
> hpxpy is generated by $ROOTSYS/tutorials/hsimple.C
>
> Cheers, Olivier

Thanks a lot Olivier. It should work. Anyway, I would suggest to implement some option to avoid painting of zero filled bins, even if there are negatives values.

Nico Received on Tue Sep 26 2006 - 19:27:26 MEST

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