RE: histogram title orientation

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Tue, 6 Dec 2005 12:04:33 +0100 (CET)

Hi Debasish,

 Can you send a running example ? The one you send doesn't show any title. What Valeri told you is right way to proceed.

Cheers, Olivier

On Sat, 3 Dec 2005, DEBASISH DAS wrote:

> Dear Valeri
> thanks!
> It did not work, maybe I must reframe my question.
>
> Please see the few lines below:
>
> //////////my macro///////////////////////////////////
> TCanvas *cv1 = new TCanvas("cv1","Separation studies",0,0,sizex,sizey);
> cv1->SetFillColor(10);
>
>
> gStyle->SetTitleX(0.7); //what you have suggested.
>
>
> pad2 = new TPad("pad1","The pad with the function",0.01,0.01,0.50,0.33);
> pad1 = new TPad("pad2","The pad with the function",0.50,0.01,1.00,0.33);
> pad4 = new TPad("pad3","The pad with the function",0.01,0.33,0.50,0.66);
> pad3 = new TPad("pad4","The pad with the function",0.50,0.33,1.00,0.66);
> pad6 = new TPad("pad5","The pad with the function",0.01,0.66,0.50,0.99);
> pad5 = new TPad("pad6","The pad with the function",0.50,0.66,1.00,0.99);
>
> /////////////////////////////////////////////////////
> Here I have divided my canvas into 6 pads. For some pads I want the title
> on the "right side" instead of the "default left".
>
> Am i doing it right?
> regards
> debasish.
>
> > Try:
> >
> > gStyle->SetTitleX(0.7);
> >
> > The default is TStyle::SetTitle(0.0)
> >
> > ----
> > Best regards
> > Valeri
> >
> >
> >> -----Original Message-----
> >> From: owner-roottalk_at_pcroot.cern.ch
> > [mailto:owner-roottalk_at_pcroot.cern.ch] On
> >> Behalf Of DEBASISH DAS
> >> Sent: Friday, December 02, 2005 11:50 AM
> >> To: roottalk_at_root.cern.ch
> >> Subject: [ROOT] histogram title orientation
> >>
> >> Hi rooters
> >> I wish to put my graph title on "right side" of my pad instead
> > of
> >> the default left side.
> >> What command do I need to change that? Any option?
> >> regards
> >> debasish.
> >
> >
>
>

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300
Received on Tue Dec 06 2005 - 12:04:41 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:14 MET