[ROOT] log scale axis range problem

From: Kate Scholberg (schol@mit.edu)
Date: Sat Oct 26 2002 - 00:44:37 MEST


Hi,

I suspect this is a simple problem.  I'm just trying to Draw a simple
1D histogram with a log scale, and I'm having trouble getting a
sensible default range of values on the y-axis from the Draw method.  I
also don't seem to able to set the axis range by hand with e.g.

hist->GetYaxis()->SetRange(min,max);

My test script and histo file:  http://www-lns.mit.edu/~schol/roottest
(Root 3.03/06, Linux)

In this simple example, the histo is filled with values ranging from
0.01 to a few tens, but TH1F::Draw starts the y-axis at ~0.2.  Is this
the expected behavior?  If so, is there an easy way to set the y range
by hand?  Do I have to make a new TAxis or something?

Kate Scholberg



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:15 MET