[ROOT] full screen window/zooming y-axis

From: Michael Wiesmann (wiesmann@e18.physik.tu-muenchen.de)
Date: Tue Oct 17 2000 - 10:26:45 MEST


Hi David!

I can answer you a small question, for the others maybe some big shots
are available :-)

 >   From the documentation and examples, it sounds like it should be 
 > easy to zoom in on the y-axis of a TH1F or TGraph by clicking the left 
 > mouse button and dragging along the y-axis.  I do this and a box is drawn 
 > around the y region as it for a successful zoom in on the x-axis -- however, 
 > after I release the mouse button, the box just disappears and nothing 
 > else happens. (I'm using ROOT  version 2.23/12 1 February 2000 under RH 
 > Linux 6.1.) Do I have to do something special to zoom in on the y-axis?

One can not "zoom" the y axis of a 1D histogram, because this is not
really a binned axis, it only shows the number of entries in the bins
on the __X-axis__. The "box" probably pops up, because a 2d histogram
has this feature ...
You can change your scope in y axis (something like "zoom") by giving
the histogram a Minumum and/or a Maximum. Two possibilities:
interactively by clicking on the histogram curve and you the functions
SetMaximum/SetMinimum or via commandline myHisto->SetMaximum(100)

Have fun,

Michael





>   Sorry for the unrelated sequence of questions. Thank you for your 
 > patience.
 > 
 > David
 > 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:35 MET