I am trying to plot some 2D histograms, my code is like that:
c = TCanvas("c", "c")
sty = TStyle("sty","my style")
xax = hist.GetXaxis()
yax = hist.GetYaxis()
Now I get my x and y axes starting from ~10^4 and ~10^3 respectively instead of 0. Somebody knows why?
I mean, 10^3 is much higher than what it should be, I get my axes cut for low values
So Set reasonable Limits or do not SetLimits at all.
It does not seem to depend on limits. I always get the same
Log(x) when x <= 0 is not valid.
You should have the lower limits of your axis strictly positive.
I am trying with different lower limits but it seems not to
can you post an example we can run showing the problem ?
The histogram i am plotting is in a root file
You can send the root file containing the histogram ? if it is too big you can extract the histogram and put it in a new file using
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.