Setting y axis limits

Asked by Amin Aboubrahim

Hi Benjamin,

I am trying to modify selection_*.C files so to change the range of the y axis in a semi-log plot.
Using stack->GetYaxis()->SetLimits(1.0,10000); and stack->GetYaxis()->SetRange(1.0,10000); are not working. Also SetMinimum and SetMaximum give errors.
Is there any other command I can use?

Thank you,
Amin

Question information

Language:
English Edit question
Status:
Answered
For:
MadAnalysis 5 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Benjamin Fuks (fuks) said :
#1

Hi Amin,

Please have a look to the root manual. The way to do it is well explained in there. The other option would be to regenerate the plots directly from the python interface.

Cheers,

Benjamin

> On 26 Mar 2018, at 21:57 , Amin Aboubrahim <email address hidden> wrote:
>
> New question #667256 on MadAnalysis 5:
> https://answers.launchpad.net/madanalysis5/+question/667256
>
> Hi Benjamin,
>
> I am trying to modify selection_*.C files so to change the range of the y axis in a semi-log plot.
> Using stack->GetYaxis()->SetLimits(1.0,10000); and stack->GetYaxis()->SetRange(1.0,10000); are not working. Also SetMinimum and SetMaximum give errors.
> Is there any other command I can use?
>
> Thank you,
> Amin
>
>
> --
> You received this question notification because you are an answer
> contact for MadAnalysis 5.
>

Revision history for this message
Amin Aboubrahim (amin83) said :
#2

Hi Benjamin,

I got those commands from the ROOT manual, but for some reason they are not working!
In all cases, thank you for the quick reply and suggestion.

Best,
Amin

Can you help with this problem?

Provide an answer of your own, or ask Amin Aboubrahim for more information if necessary.

To post a message you must log in.