Re: TH->Draw() Draw options question.

Rene Brun (Rene.Brun@cern.ch)
Wed, 17 Mar 1999 15:30:40 +0000


Anton Fokin wrote:
>
> Hi there,
>
> I couldn't find if it's possible to set draw options for a histo somewhere
> outside TH.Draw()? I would like to have different options set for every
> histo I have and let a histo draw itself with a corresponding draw option
> whenever I use a generall call to TH.Draw();
>
> Regards,
>
> Dr. Anton Fokin
>
> Division of Cosmic and Subatomic Physics
> Lund University
> Sweden

Hi Anton,
Yes, this is possible. Via TObject::SetDrawOption(const char* option)
You can do:
hist->Draw(some option);
hist->SetDrawOption(another option) as many times as you want.
SetDrawOption is called by the histogram DrawPanel widget.

Rene Brun