Re: [ROOT] X-axis-labeling in graph (fwd)

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Aug 13 2002 - 19:07:21 MEST


Hi Karin,

See an example in the attachement

Rene Brun

On Tue, 13 Aug 2002, Atila Alves Neves wrote:

> Hi!
> 
> I want to change the x-axis labeling of my graph and just write someting
> in the beginning, the middle and the end in the range. I can do this for a
> histogram using DrawText as in one example on the web-page:
> 
> TText *t = new TText(); 
> t->SetTextAlign(32); 
> t->SetTextSize(0.035); 
> t->SetTextFont(72); 
> char *labels[6] = {"Jan98","Feb98","Mar98","Apr98","May98","Jun98"}; 
> for (Int_t i=0;i<6;i++) {	
>  t->DrawText(x[i],-0.42,labels[i]); 
> }
> 
> This doesn't work if I drew a graph on my canvas. Is there a way to do the
> same thing for a graph?
> 
> best regards,
> Karin Eklund
> 
> 





This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET