Hi Daniel,
On Wed, 23 Oct 2002, Daniel Cussol wrote:
>
> 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?
This has never been true.
My guess is that you are confusing SetDrawOption with TH1::SetOption.
For histograms, you can do, eg
myhist.SetOption("lego");
myhist.Draw();
and your histogram will be drawn with the "lego" option
Rene Brun
>
> 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