Prev: iresize again
Next: global variable being emptied?
From: Gillian on 8 Aug 2010 06:01 Hi. I recently created a figure, set the orientation to landscape using the orient command, then saved it as a pdf - which was mysteriously in portrait orientation. I have no idea why. And it turned out it wasn't just pdfs - other file formats did the same thing. I tried stripping out all complications - I did a little test using the code below: figure plot(testdata) orient landscape Now the figure is landscape in print preview mode, but if I click on file>Save as and save it as test.pdf, then open the pdf, it's portrait. If, however, I say print -dpdf test.pdf on the command line, the pdf is then landscape. Does anyone have any idea why saving it as a pdf (or other file formats) would work correctly on the command line but not when I use the menus?
From: us on 8 Aug 2010 12:02 "Gillian " <g.damerell(a)uea.removethis.ac.uk> wrote in message <i3lv91$77g$1(a)fred.mathworks.com>... > Hi. I recently created a figure, set the orientation to landscape using the orient command, then saved it as a pdf - which was mysteriously in portrait orientation. I have no idea why. And it turned out it wasn't just pdfs - other file formats did the same thing. > > I tried stripping out all complications - I did a little test using the code below: > figure > plot(testdata) > orient landscape > > Now the figure is landscape in print preview mode, but if I click on file>Save as and save it as test.pdf, then open the pdf, it's portrait. If, however, I say > > print -dpdf test.pdf > > on the command line, the pdf is then landscape. Does anyone have any idea why saving it as a pdf (or other file formats) would work correctly on the command line but not when I use the menus? yes... the menu SAVEAS calls HGEXPORT, which sets PAPERORIENTATION to PORTRAIT by default(!)... to show how it works, do this edit hgexport; % <- DO NOT CHANGE THIS FILE! % go down to line #460 % <- ver 2010a % set a break; % run your saveas... % step past the line % manually set the orientation in the command window set(H,'paperorientation','landscape'); us
|
Pages: 1 Prev: iresize again Next: global variable being emptied? |