Unable to obtain a pad in a canvas

Hi,
I tried to create a canvas with 4 pads in it in 2*2 format. The 4th one doesn’t display. Also, when I want to change the range of y-axis by using-

H1->GetYaxis()->SetRangeUser(); 

from (0,400) to (0,800); I cannot see the effect in the output? How do I solve these two issues?

How do you create the canvas and the pads?

You can only “shrink” the range of an axis.

Please find the codes I sent as attachment.

There is no code attached in your post.

I sent the attachment as .zip file. It bounced back to me. The problems are resolved now. It was due to a mistake of writing the name of TH files from the .root files.

Thank you for your generosity,

Kind regards,

Ankur,

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.