Hi Dennis,
Your request is not totally clear.
- you can select a log scale in x/y in your current pad
- with gPad.SetLogy()
- via the pad context menu
- you can zoom on the x or y axis by moving the mouse to the axis (the cursor
changes to a "hand" when you are on teh axis. Then press the left button
where you want to start the zoom and release it where you want to end.
- you can force a min/max on the vertical scale
- with the axis context menu (SetMinimum/SetMaximum)
- by calling h->GetYaxis()->SetMaximum(something);
- you can create your own histogram with your prefered range before calling
TTree::Draw, then
tree.Draw("Evis>>hEvis"); where hEvis is the name of your histo.
Rene Brun
Dennis C. Arrogancia wrote:
>
> Dear Rooters,
>
> I have a ntuple file which contains variables such as Evis, Pt, Pl, and
> etc.. I apply cuts in each of this variables and then draw. I have a
> little problem on how to change the range of the x-axis on the resulting
> histogram. How can i do it? Also, on the y-axis, i've noticed that the
> scaling is arbitrary. Is there a way on how to change the scale such that
> the range is of the order of let say, 10, 10^2, 10^3, and so on.
>
> dennis
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:09 MET