Setting log scale for a single histo in a macro

From: Alessio Sarti <Alessio.Sarti_at_lnf.infn.it>
Date: Fri, 22 Apr 2005 11:34:33 +0200 (METDST)

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) Received on Fri Apr 22 2005 - 11:34:40 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET