Hi Philip, In the current version 2.23, you can use Latex expressions in titles , axis titles, TPavelabels, TPaveTexts, etc All these objects use the TLatex class. You can find an example below. With this technique, you get the same result on the screen and Postscript. More details about the Latex syntax can be found at: http://root.cern.ch/root/html/TLatex.html Examples are given in the tutorials latex1, latex2, latex3. { TCanvas c1("c1"); c1.SetBottomMargin(0.15); TH2F h2("h2","h2 with latex titles",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 Philip J. Clark wrote: > > Hi folks, > > Does anyone know how to put greek letters or super/sub scripts into > axis titles in the root applications? > > Cheers > > Phil > > -- > Philip J. Clark University of Bristol > P.J.Clark@bris.ac.uk H.H. Wills Physics Laboratory > tel: 44-(0)117-928-8772 Tyndall Avenue > fax: 44-(0)117-925-5624 Bristol BS8 1TL
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:17 MET