Re: Titles in latex

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Mar 02 2000 - 18:26:59 MET


Hi Colin,
Here is an example with axis titles, etc.

{
   TCanvas c1("c1");
   c1.SetBottomMargin(0.15);
   TH2F h2("h2","<#Lambda(1520)>/<#pi>",40,0,40,20,0,10);
   h2.GetXaxis()->SetTitleOffset(1.4);
   h2.GetXaxis()->SetTitle("#left| #frac{1}{1 - #Delta#alpha}
#right|^{2} (1+cos^{2}#theta)");
   h2.GetYaxis()->SetTitle("#frac{2s}{#pi#alpha^{2}} 
#frac{d#sigma}{dcos#theta}");
   h2.Draw();
}


Rene Brun

C. Bernet wrote:
> 
> Hi !
> 
> I would like to use tex formating in titles, in order to be able to give
> give general informations (with powers and greek letters) in the title,
> instead of having to create and
> draw another TPaveText.
> 
> But TNamed::SetTitle takes a
> char* as an argument. Is there any way to interprete this char* in order
> to get a TLatex Drawn in the title TPaveText, instead of a TText ?
> 
> Many thanks,
>                 Colin



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:20 MET