Re: [ROOT] Lost of the memory of SetDrawOption()?

From: Daniel Cussol (cussol@in2p3.fr)
Date: Wed Oct 23 2002 - 18:42:19 MEST


Hello again,

> 
> SetDrawOption (See TObject::setDrawOption doc) applies only to an already 
> drawn object. This function is typicalled called from the object context
> menu to set a different option.
> In your case, the h2->Draw() call will erase the current canvas and draw
> the object h2 with the default options. If you do:
>   h2->Draw();
>   h2->SetDrawOption("box");
>   gPad->Update(); //the change will become effective
> 

 In previous ROOT versions (below 3?), it was possible to set the default
DrawOption BEFORE the object was drawn. It was very useful because one
could plot these objects with the wanted option just by clicking on it in
the TBrowser. Is it desirable/useful to have this behaviour again?

 Amicalement

Daniel CUSSOL

LPC Caen
Boulevard du Marechal Juin
14050 CAEN CEDEX

e-mail : cussol@in2p3.fr
Tel    : +33-(0)2-31-45-29-73
FAX    : +33-(0)2-31-45-25-49



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:15 MET