Re: Draw histograms in Canvas

Rene Brun (Rene.Brun@cern.ch)
Fri, 26 Mar 1999 15:27:14 +0100 (MET)


Hi Anton,
Iconizing a canvas and back will not force a call to the TH1 drawing
functions.
The TCanvas::Update function is only called when the canvas content has
been modified, or the scale of the canvas modified by growing/shrinking
its dimensions with the mouse.

Rene Brun

On Fri, 26 Mar 1999, Anton Fokin wrote:

> Hi rooters,
>
> I wonder if a histogram will be actually drawn (i.e. histogram->Draw() will
> consume the same amount of processor time and go through the the same code)
> if a Canvas is iconized/hidden/etc. Or it's my duty to check if a histogram
> is hidden and doesn't need to be redrawn. Also, if I go from an iconized to
> normal Canvas, will it force automatic redraw update for all histograms
> belonging to the Canvas?
>
> Best regards,
>
> Dr. Anton Fokin
>
> Division of Cosmic and Subatomic Physics
> Lund University
> Sweden
>
>