Hello,
I am plotting with TGraph. I cannot figure out to set a logarithmic scale on the y axis and set a minimum and maximum values on the x and y axis.
Somebody can help ?
Cheers.
Sabrina
Hello,
I am plotting with TGraph. I cannot figure out to set a logarithmic scale on the y axis and set a minimum and maximum values on the x and y axis.
Somebody can help ?
Cheers.
Sabrina
lin/log scale is a property of the pad/canvas, not of the object that can be drawn in lin scale in one pad and log scale in another pad. To answer your question, do
TCanvas c1;
c1.SetLogy();
gr->SetMaximum(max);
gr->SetMinimum(min);
gr->Draw("alp");
Rene
thanks a lot.
sabrina
[quote=“brun”]lin/log scale is a property of the pad/canvas, not of the object that can be drawn in lin scale in one pad and log scale in another pad. To answer your question, do
TCanvas c1;
c1.SetLogy();
gr->SetMaximum(max);
gr->SetMinimum(min);
gr->Draw("alp");
Rene[/quote]