Re: [ROOT] Forcing exponent for TH1 axis labels

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Sep 15 2003 - 22:34:46 MEST


Example:

root [0] TH1F h("h","test",100,0,1)
root [1] h.Fill(0.5,36000)
root [2] TGaxis::SetMaxDigits(3)
root [3] h.Draw()

You can also do:

gPad->SetLeftMargin(0.15); //left margin is 15 per cent of the pad width
h->GetYaxis()->SetTitleOffset(1.4);

Rene Brun


On Mon, 15 Sep 2003, Alex Olivas wrote:

> i would like to force histograms to use the exponent when drawing.
> the problem i'm having is the labels and the y title are overlapping.
> http://hep-www.colorado.edu/~olivas/KsCombinedStudyData.eps
> is there any way to do this?  or do i have to play with label sizes
> and offsets?
> thanks,
> alex.
> 



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET