Re: [ROOT] Y axis...

From: Matthew Bellis (bellim@rpi.edu)
Date: Thu Dec 06 2001 - 15:10:05 MET


Doh!

Thanks very much. 


On 2001.12.06 09:03 Rene Brun wrote:
> Matt,
> 
> You do not use the Latex notation. See our numerous examples in the
> tutorials.
> In your case, do:
> 
> {
>    //h->SetYTitle("M^2!(p `p^+!)");
>    h->GetYaxis()->SetTitle("M^{2}(p #pi^{+})");
>    h->GetYaxis()->SetTitleOffset(1.2);
>    h->Draw();
> }
> 
> You were using the old notation that was applicable on the postscript
> file only.
> The TLatex notation produces the same result on the screen and ps.
> 
> Rene Brun
> 
> Matthew Bellis wrote:
> >
> > Rene,
> >
> >         I tried...
> >
> >    h1->GetYaxis()->SetTitleFont(22);
> >    h1->SetYTitle("M^2!(p `p^+!)");
> >
> >         And yes this makes the title parallel to the Y-axis.
> >
> >         But it no longer outputs the Latex nature of the title to
> the
> > .ps file.
> >
> >         When I change the font...
> >
> >    h1->GetYaxis()->SetTitleFont(21);
> >    h1->SetYTitle("M^2!(p `p^+!)");
> >
> >         It will ouput the Latex characters to a .ps, but it is no
> > longer parallel to the axis.
> >
> >         What am I doing wrong?
> >
> > Matt
> >
> > On 2001.12.06 02:13 Rene Brun wrote:
> > > Matt,
> > >
> > > By default, titles along Y are drawn parallel to the axis.
> > > However, if you set the font precision to 1 (eg, font 61), you get
> > > the original hardware fonts and your title will be horizontal.
> > > Check your setup in your rootlogon.C macro or your gStyle setup.
> > >
> > > Rene Brun
> > >
> > > Matthew Bellis wrote:
> > > >
> > > > Hey hey,
> > > >
> > > >     I'm using 3.01.06. When I draw titles on the Y-axis they are
> not
> > > > parallel to the axis, and yet most examples I see have them that
> > > way.
> > > >
> > > >     Is the default for them to be perpendicular to the Y-axis?
> 'Cos
> > > > that's how mine are. How do I make them run parallel? Thanks,
> all.
> > > >
> > > > Matt Bellis
> > > > RPI
> > >
> > >
> 
> 



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