[ROOT] Axis scaling in TF1

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Wed Aug 14 2002 - 15:55:56 MEST


Hi,

I tried to draw some TF1 function.
First I tried to draw exp(-x) in the range between 0 and 1 (not 1 and 0!).
TF1 f("", "exp(-x)", 0, 1, 0);
f.Draw();
What I got was a histogram binned from 1 to 0 (left to right) and from 1 
to 0 (bottom to top). But I preffer to have a binning from 0 to 1.

The I tried to draw
(exp(x*[0])-1)/(exp([0])-1)
With [0] set to 1, 2, 3, or similar in the Range 0..1.
TF1 f("", "(exp(x*[0])-1)/(exp([0])-1)", 0, 1, 1);
f.SetParameter(0, 1);
f.Draw();
If I Draw the function I get non equidistant binning in both axis. 
(Neither X nor Y are set to Log-Scale) It is not a log-scale.

I neither want the first behavour, nor the second one. How can I get rid 
of it?

Thomas.

PS: I'm using root 3.02/06



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