Re: [ROOT] 1d hist with logY

From: Patois Yannick (patois@ganil.fr)
Date: Wed Dec 20 2000 - 21:29:26 MET


On Wed, 20 Dec 2000, Jayoung Wu wrote:

> Could you explain how to make 1D-Hist with log Y scale?

The histogram doesnt control the 'representation' of the data on the
screen this way.
So 1D histo stores numbers without any 'lin/log' scale awarness.
This is controled by the Pad it is draw into.
If you are going to draw an histo, that certainly means that you already
have a pad ready for it.

Then gPad (pointer to the current pad) is valid and you simply add the
following line somewhere in your script, just before or after the
hist->Draw() would be good.

gPad->SetLogy();

	Yannick



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:40 MET