Hi Vladimir, When the default TH1 constructor is called, the axis name is not set. When zooming with the mouse, TAxis::ExecuteEvent looks for the axis name. I have fixed this problem in my development version. Meanwhile, you can set the axis name as shown below: Rene Brun Vladimir Pechenov wrote: > > > Hi, > I have a problem with the Class TH1F : > If i execute the following macro: > > TH1F* hist=new TH1F(); > hist->SetObject("hist","hist"); > hist->SetBins(20,0.,20.); > hist->Draw(); hist->GetXaxis()->SetName("xaxis"); <==== add this line > > > i can not use the zoom facility while clicking on the histogram. > > But the zoom works if i execute the following macro: > > > TH1F* h=new TH1F("a","a",10,0.,10.); > h->Draw() > > > Vladimir and Danis
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:25 MET