RE : TAxis : move it

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Sat, 24 Oct 2009 11:45:54 +0200


Hi Marc,
You can set the tick marks size to 0 and the distance of the labels from the axis very large (ie 999) for the standard axis you want to make invisible. Cheers, Olivier


De: owner-roottalk_at_root.cern.ch de la part de Marc Escalier Date: ven. 10/23/2009 22:59
À: Rene Brun
Cc: roottalk_at_lxbuild091.cern.ch
Objet : Re: [ROOT] TAxis : move it

thank you René,

but then, how to delete the standard axis ?

(in order to keep only the TGaxis)



On Fri, 23 Oct 2009, Rene Brun wrote:

> The axis is always drawn at the origin of the coordinates or 0 in case -+.
> Create a TGaxis and place it where you want. See
> $ROOTSYS/tutorials/graphics/gaxis.C
>
> Rene Brun
>
> Marc Escalier wrote:
>> Hello,
>>
>> Would somebody know how to move the X and Y axis ? i mean for example,
>> make the axis be at y=3, and x axis at 0.5 (just a minimal dummy example)
>>
>> TCanvas *mycanvas_test=new TCanvas("mycanvas_test","mycanvas_test");
>> TF1 myfunction("myfunction","x*x",-1.5,1.5);
>> myfunction.Draw();
>>
>> i mean : one can get TAxis *axis_x=myfunction->GetXaxis(), but then how to
>> move it ?
>>
>> thanks
>>
>> ===========
>> Marc Escalier a écrit :
>>> Hello,
>>>
>>> From a TProfile, we see the distribution of
>>> Y (with errors due to distributions) as a function of X
>>>
>>> How to transform it to draw :
>>> -same in X axis
>>> -in the Y axis : rms of the Y instead of "Y mean value with his errors" ?
>>>
>>> thank you
>>>
>>>
>>
>
>
Received on Sat Oct 24 2009 - 11:47:45 CEST

This archive was generated by hypermail 2.2.0 : Sun Oct 25 2009 - 05:50:11 CET