Problem positioning two pads

Hello,
I am having trouble trying to draw two pads to a canvas. I want a runner plot on the bottom, but my code seems to be putting the second pad on top of the first one.
alpha_0_beta_and_C01.cxx (3.7 KB)
alpha_0_beta_and_C01.txt (783 Bytes)

Any help would greatly be appreciated.
_ROOT Version: 6.23/01

A pad is always created in the current active pad. This is the way to make nested pads. If your canvas is C you will need to do C->cd(0) to make the canvas "the current pad’.

1 Like

Yes, so I included the line
c1->cd(1);
and it worked. Thank you couet.
alpha_0_beta_and_C01.cxx (3.6 KB)