Hi Walter, I fixed a problem in the automatic axis limits finder algorithm when the number of bins is less than 5. (fix now in CVS). Note that once you have specified a new number of bins, it becomes the new default number of bins for the subsequent histograms. Thanks for your report. Rene Brun "Walter F.J. Mueller" wrote: > > Dear ROOTers, using 3.05.04 > > using the ">>h(....)" contruct in TTree::Draw seems to change > the state of root such that subsequent scatter plots fail. > > Find attached two mini sessions with 2d and 3d scatter plots. > The first and second Draw() commands work as expected. The > third Draw() commands fails rather than just repeating what > the first one did. > > Is there anything simple I'm overlooking ? > > Cheers, Walter > > ---- > 2d Example: > > file = new TFile("/home/walter/data/s254/musi_0720.root"); > tree->Draw("xs:xo"); > tree->Draw("xs:xo>>h(1,-500,+500,1,-0.2,+0.2)"); > tree->Draw("xs:xo"); > > Error in <TCanvas::Range>: illegal world coordinates range: > x1=1250.000005, y1=0.625000, x2=-1250.000005, y2=-0.625000 > Error in <TCanvas::RangeAxis>: illegal axis coordinates range: > xmin=1000.000000, ymin=0.500000, xmax=-1000.000000, ymax=-0.500000 > Error in <TCanvas::Range>: illegal world coordinates range: > x1=1250.000005, y1=0.625000, x2=-1250.000005, y2=-0.625000 > Error in <TCanvas::RangeAxis>: illegal axis coordinates range: > xmin=1000.000000, ymin=0.500000, xmax=-1000.000000, ymax=-0.500000 > > ---- > 3d Example: > > file = new TFile("/home/walter/data/s254/musi_0720.root"); > tree->Draw("ys:yo:xo"); > tree->Draw("ys:yo:xo>>h(1,-500,+500,1,-500,+500,1,-0.1,+0.1)"); > tree->Draw("ys:yo:xo"); > > Error in <TView::ResetView>: Error in min-max scope > Error in <TView::SetRange>: problem setting view > Error in <TView::ResetView>: Error in min-max scope > Error in <TView::SetRange>: problem setting view > > -- > Walter F.J. Mueller Mail: W.F.J.Mueller@gsi.de > GSI, Abteilung KP3 Phone: +49-6159-71-2766 > D-64291 Darmstadt FAX: +49-6159-71-2989 > WWW: http://www-kp3.gsi.de/www/kp3/people/mueller.html
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET