Re: [ROOT] 1D AH option

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Feb 16 2001 - 17:24:30 MET


Hi Isidro,
You already sent a similar mail a long time ago and I forgot to process it.
Sorry for that.
I will update the non-functioning option "A" in a next release. Meanwhile, it is
not too complicated to achieve what you want: try:

root [0] TH1D h("h","Trial",100,0,100);
root [1] h.GetXaxis()->SetLabelOffset(99);
root [2] h.Draw();

Rene Brun

Isidro.Gonzalez.Caballero@cern.ch wrote:
> 
> Hi,
>         If I understand correctly the AH option passed to a histogram
> drawing command should not paint the axis labels and ticks. However if one
> does:
> 
> root [0] TH1D h("h","Trial",100,0,100);
> root [1] h.Draw("AH");
> 
> An empty histogram, with axis ticks and labels is drawn. Is this a bug?
> Is it possible to draw the full histogram, but avoiding the X axis labels?
> 
> Cheers:
> 
>         Isidro
> 
> +---------------------------+--------------------------------+
> | Isidro González Caballero | mailto:Isidro.Gonzalez@cern.ch |
> | CERN-EP / Mailbox: F28010 | http://home.cern.ch/~iglez/    |
> | 1211 Geneva 23            |               -o-              |
> | Switzerland               | Tel: +41 22 76 73060, 73316    |
> +---------------------------+--------------------------------+



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:36 MET