autoscaling

Wolfgang Korsch (wkorsch@server1.pa.uky.edu)
Thu, 3 Apr 1997 07:50:52 -0700


Hi,

I have two questions:

a) It happens quite often that the "ntuple->Draw("abc");"
command does not use the full range of the histogram.
The maximum x-values displayed is not the real
maximum x-value.
I do have to predefine a 1d-hist and specify the scale
to get the full range.
Is there a way to get the ntuple->Draw command to
autoscale properly?

b) I essentially seem to have the same problem for
profile plots. It happens often that the
command "ntuple->Draw("y:x>>hprof","","prof");"
does not use the full x-range (seems to be the same
cut-off as in a)). The additional problem here is that
predefining a profile hist using
"hprof1 = new TProfile("hprof1","y vs x",nch,xmin,xmax,ymin,ymax);"
doesn't help, since the "ntuple->Draw("y:x>>hprof1,"","prof");"
command overwrites the previous definition autoscales, so
I am back to the original problem.
How can I fix this?

Thanks.

Wolfgang