By default the text/label size is a percentage of the vertical pad size. Here you set 10% (0.1). When a canvas is splitted using Divide(), the pads generated do not have all the same vertical size because of the different margins. To bypass this problem it is enough to define the labels’ size in a way independant from the pad size. This can be achieved using a pixel size instead of a % size. In the “for loop” simply do:
Thanks for the answer couet! Unfortunately the problem reappears when trying to print the canvas to a pdf or eps. Here is an example to demonstrate my problem: fontSizePad.C (649 Bytes)
This does seem to go away if if printing to say a png, but I’d rather like to be able to use a pdf here. Any suggestions?
When a canvas is split using Divide(x,x,0,0), the pads generated do not have all the same vertical sizes because of the different margins. Using the font 43 will work on screen and png but PS and PDF are vector outputs and the size in points do not exist there. I did some print outs in the PS code, and running your macro it is clear that the bottom pad in the “test” case has different parameters. I am afraid that making changes there will have many bad side effects, and anyway you have a fall back solution with the technique you are using to produce reference.ps.