Re: [ROOT] Setting y-axis max to constant amount above max histogram bin value

From: Benjamin E. Norman (bnorman@star.physics.kent.edu)
Date: Tue Apr 01 2003 - 02:57:52 MEST


Hi Carl,
	If I understand what you'd like, here's what I usually do if I want to 
leave, say, the top 1/3 of the histogram empty:

h->SetMaximum(1.5 * h->GetMaximum());

-Ben

Carl Gwilliam wrote:
> Hi,
> 
> Wherever I put my key on my histograms it overlaps important data so I was
> wondering if it is possible to get the number of events in the most
> popular histogram bin and then scale the histogram y-axis maximum to be a
> constant amount greater then this (so that the free space is the same for
> all histograms).  This will then give me room to put the key.
> 
> Cheers,
> 
> Carl


-- 
Benjamin E. Norman            Kent State University Physics Dept
bnorman@kent.edu                                 Kent, OH  44240
330-672-0098                                                 USA



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