Coyote Graphics PS/PDF output size/orientation [message #85493] |
Tue, 13 August 2013 16:19  |
Paul Levine
Messages: 29 Registered: February 2008
|
Junior Member |
|
|
Greetings,
I've been getting into the Coyote's Guide to Traditional IDL graphics,
and am starting to make better use of the Coyote Graphics system. Good
stuff!
I am creating some plots with multiple cg commands (cgAxis, cgOplot,
etc.) along with al_legend. The graphics window itself displays in a
landscape orientation, using the default 640 x 512 window size, which
is what I want. If I create a PNG output, using either the Coyote
Graphics window "File" drop-down menu, or using cgControl,
Output='filename.png', then I end up with a 640 x 512 pixel PNG, which
is what I expect. All good so far.
But when I output to PostScript or PDF, using either the Coyote
Graphics window "File" drop-down menu, or using cgControl,
Output='filename.ps/pdf', I end up with an 8.5 x 11 inch file with my
plot rotated 90 degrees counterclockwise. The aspect ratio of my plot
is correct, so if I rotate the page, everything looks good, except that
I have excess whitespace on either side. Also, I'd like to
programmatically create lots of PDF files as output, so having to
rotate each of them will be a bit cumbersome (I'm sure I can automate
that outside of IDL, but would prefer to learn how to do it right the
first time).
Do I need to be wrapping my graphics commands with ps_start and ps_end
so that I can explicitly specify the /landscape keyword to ps_start?
I am using Mac OS X 10.8.4 with GPL GhostScript 9.07 and the newest
version of Coyote Graphics (downloaded today)
Thanks,
Paul
|
|
|