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

From: Duc Bao Ta <xiedebao_at_googlemail.com>
Date: Sat, 17 Sep 2011 01:15:44 +0200


Hi Alexander,

have a look at the reference for THStack (http://root.cern.ch/root/html/THStack.html#THStack:GetXaxis), this should work:
>>> stack.Draw()
>>> stack.GetXaxis().SetRangeUser(-1,1)
>>> stack.Draw()

Cheers
Duc

On 16 September 2011 18:35, Alexander Mann <amann_at_uni-goettingen.de> wrote:
>
> Hi,
>
> I haven't succeeded at the simple task of setting the y-axis range for a
> THStack using all possible ways I could think of.
>
> The example script I have attached demonstrates all the things I've tried.
> Most of them indeed do influence the y-axis range, but none yields targeted
> value of 3.
>
> Using ROOT 5.30/00. The y-axis is logarithmic.
>
> I'd be grateful for any hints.
>
> cu
> Alexander
>
Received on Sat Sep 17 2011 - 01:16:11 CEST

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