Re: How to set range of y-axis for THStack?

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Mon, 19 Sep 2011 08:26:21 +0000

On Sep 19, 2011, at 10:13 AM, Alexander Mann wrote:

Hi Olivier,

thanks for the example. There seem to be two issues:

  1. You set the maximum to 600: hs->SetMaximum(600.) Still when I run the code the maximum is not 600, but 630?

In linear mode just do:

   gStyle->SetHistTopMargin(0.);

2) The minimum is set to 200 and is plotted as 200. That's a good sign. Still I would like to use a logarithmic y-axis. If you set the y-axis to logarithmic, you'll find that also the minimum of the y-axis no longer agrees with the value specified in SetMinimum().

Yes that's automatic in log scale in order to be on decades limits. Received on Mon Sep 19 2011 - 10:26:26 CEST

This archive was generated by hypermail 2.2.0 : Mon Sep 19 2011 - 11:50:01 CEST