Hi Daniel,
This is already implemented.
You can set a default drawing option for TH1 objects via TH1::SetOption.
If you call TH1::Draw with no option, the default option is used.
example
h->SetOption("lego");
h->Draw(); // will use the lego option
h->Draw("scat") will use the scatter plot option
Rene Brun
Daniel Cussol wrote:
>
> Hello rooters,
> I would like to know if there is a simple way to change the default
> drawing option for histograms (TH1 based classes). To be more precise, is
> it possible to change the default drawing option of the TH2 class to "BOX"
> or "LEGO"? This could be very useful when using a TBrowser to display
> histograms. At the present moment, you have to first click on the
> histogram icon, and then change the drawing option using the pull down
> menu for this histogram.
>
> Thanks in advance.
>
> 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 : Tue Jan 02 2001 - 11:50:38 MET