Hi Alessio,
Have a look to:
$ROOTSYS/tutorials/logscales.C
Cheers, Olivier
On Fri, 22 Apr 2005, Alessio Sarti wrote:
>
> Hi all,
> I'd like to create an histogram with a log scale in a macro.
>
> I'm doing this calling
> gStyle->SetOptLogx();
> but in this way the scal of ALL histograms in the macro is set to Log.
>
> How can I set the log scale ONLY for the histogram I'm intrested in?
> It seems that the only object that knows about the "log" option is the
> Pad. My problem is that Id' like to "print" the pads into a ps file
> without knowing which one has to be set to Log. Instead I'd like to attach
> the "log scale" attribute to the histogram.
>
> Is that possible in some way?
>
> Cheers,
> Alessio
>
> ______________________________________________________
> Alessio Sarti INFN Frascati
>
> >>>I'm in Frascati<<<
>
> Cell +39-06-94038166
> Office +39-06-94032776
> Fax +39-06-94032427
>
> F. "It's not time to make a change, just relax take it easy.."
> S. "... and I know that I have to go away. I know, I have to go."
> (C. Stevens)
>
>
-- Org: CERN - European Laboratory for Particle Physics. Mail: 1211 Geneve 23 - Switzerland Mailbox: J25910 E-Mail: Olivier.Couet_at_cern.ch Phone: +41 22 7676522 WWW: http://cern.ch/Olivier.Couet/ Fax: +41 22 7670300Received on Fri Apr 22 2005 - 13:27:32 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET