I get the wrong aspect ratio when printing a canvas to a postscript file, printing the same canvas to a pdf file work ok, maybe I’m missing a comand. I’m using ROOT v5-34-04.
c = TCanvas('c','c',700,100,600,600)
h = TH1F('h','h',1,0,1)
h.Draw()
c.Print('h.ps')
The plot in canvas is squarish but the plot in h.ps not, it looks skewed.
How can I get the same plot in postscript?
gStyle.SetPaperSize(20,20)
does not help
c.Print('h.pdf')
does give the correct aspect ratio.
Thank you!