Re: [ROOT] Labels in a text histogram

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jun 24 2003 - 16:40:44 MEST


Hi,

Before filling your histogram(s), proceed like in example labels2.C
  for (i=1;i<=25;i++) h->GetXaxis()->SetBinLabel(i,whites[i-1]);
  for (i=1;i<=25;i++) h->GetYaxis()->SetBinLabel(i,blacks[i-1]);

Do not call the LabelsDeflate function. Your labels will remain
in the original order.

Rene Brun

 Luigi Esposito-MACRO wrote:
> 
> Hello.
> I'm doing a text histogram and, following the examples in labels2.C, I'm
> putting the labels to the histrogram axises.
> There are some ways of sorting the axis labels, alphabetic order
> (default), by increasing or decreasing values, but I'd like to maintain
> the initial order.
> Is it possible?
> In the attachment there is the code I'm using.
> Thank you,
> 
>         Luillo
> 
>   --------------------------------------------------------------------------------
>                  Name: analysis.C
>    analysis.C    Type: Plain Text (TEXT/PLAIN)
>              Encoding: BASE64



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET