Re: [ROOT] Upper limit on entries in TH3D::Draw() ?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jun 30 2000 - 14:15:38 MEST


Hi Burt,
I have now protected the drawing function TPolyMarker3D::PaintH3
in case of histograms with a very large number of entries.
The new algorithm will never plot more than kMaxEntry(100000) markers.
If an histogram with more entries is found, the number of points is scaled
to the maximum kMaxEntry.
Thanks for reporting this case.
Meanwhile, you can use
  foo->Draw("box")
instead of
  foo->Draw()

Rene Brun


Burt Holzman wrote:
> 
> Rooters,
> 
> I've noticed that I cannot draw 3D histos if they have
> more than 1048571 entries.   At 1048572, I get:
> 
> Error in <RootX11ErrorHandler>: BadLength (poly request too large or
> internal Xlib length error) (XID: 0)
> 
> and > 1048572 I get
> 
> *** Break *** write on a pipe with no one to read it
> Error in <RootX11IOErrorHandler>: fatal X11 error (connection to server
> lost?!)
> 
> **** Save data and exit application ****
> 
> this occurs in 2.25/00; the following macro duplicates the behavior.
> 
> {
> TH3D *foo = new TH3D("foo", "foo", 100, 0, 10, 100, 0, 10, 100, 0, 10);
> 
> const Int_t maxent = 1048573;
> 
> for (Int_t i=0; i < maxent; i++)
> {
>   foo->Fill(5,5,5);
> }
> 
> foo->Draw();
> }



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET