TCanvas Print inconsistencies

Dear Rooters,

I am having a problem when Printing / Saving a TCanvas as a pdf.
in general use I output in both PDF and PNG using pyRoot :

  c1.Print(outputfile+(DirKeys[dir].GetTitle())+hist+".png")
  c1.Print(outputfile+(DirKeys[dir].GetTitle())+hist+".pdf")

When I output in png I get the full output of the page, when outputting to PDF the bottom of the image is cut off. A copy of two example images is attached.
nAllDetlaPhi_NextToLeadingJets__all.pdf (14.8 KB)



Any ideas on how to solve this?

Hi… no idea but, in general, I avoid cutoffs just setting appropriate margins around the pads; smt like this:
bottomPad->SetBottomMargin(0.20);

Do you have a small macro reproducing this problem ?