Re: Setting a maximum and minimum z-axis range on 2D histograms

From: Rene Brun <brun_at_pcroot.cern.ch>
Date: Tue, 2 Aug 2005 22:32:28 +0200 (MEST)


Hi Claire,

call

   gStyle->SetMinimumZero(kFALSE);
or

   h->SetMinimum(0.95);
   h->SetMaximum(1.05);

Rene Brun

On Tue, 2 Aug 2005, Claire Gwenlan wrote:

>
> Hi,
>
> I have a problem where I want to plot a 2D histogram, say as a lego, but
> the variation in bin content i.e. z, is quite small. Most values are
> around 1 and I want to set a range of 0.95 -> 1.05. However, by default,
> root is plotting from 0-2. I can't find how to change this. Can you help?
>
> Thanks,
>
> Claire
>
> (am using root version 4.01/03)
>
>
Received on Tue Aug 02 2005 - 22:32:42 MEST

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