c1->Divide(1.,2.,0.0,0.0);

Hi
I am using the command

c1->Divide(1.,2.,0.0,0.0);

to divide a canvas into two. It produces the plot attached…
What I actually want is a larger upper part and a smaller lower part. But the Divide() command seems to divide always in equal parts? Does anybody know how to divide in unequal parts?
thanks a lot for help
cheers
florian
xi_real.pdf (17.1 KB)

You should create the pads yourself according to the layout you like.

yes that’s what I want to do… but how?

Well, you create the TPad one by one at the position you want. Using the TPad constructor.
See the TPad documentation.

Hi,

www-utheal.phys.s.u-tokyo.ac.jp/ … A/RHEA.pdf

This tutorial is written in Japanese, but page 52-54 will help you. See the “code 8.5 residual.C” and fig 8.4.

thanks a lot, that was exactly what I needed…
fl