Hi Dan,
For a 1-d histogram, use TH1::Setmaximum/SetMinimum to set the range in
Y
Same for a TH2, for settging the min/max along Z.
I have modified TH1::SetAxisRange in CVS to automatically call
SetMaximum/SetMinimum in case the function is called in the above cases.
Rene Brun
On
Thu, 7
Aug 2003, Dan
Holmes wrote:
> TH1F*->SetAxisRange does not seem to work if i plot it on a log scale??
>
> ..no error warning, i just doesn't do it.. any thoughts/suggestions?
>
> root vers: 3.03/07
>
> my actual code:
>
> TCanvas *XSBRCanv = new TCanvas("XSBR","XSBR",1);
> XSBRCanv->SetLogy(1);
> BR5->SetAxisRange(0,0.001,"Y");
> BR5->SetStats(0);
> BR5->SetLineColor(2);
> BR5->SetFillStyle(4000);
> BR5->Draw() ;
>
>
>
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET