cgps_open output size [message #89148] |
Mon, 28 July 2014 16:36  |
amin farhang
Messages: 39 Registered: November 2010
|
Member |
|
|
Dear All,
I know that cgPS_Open will try to "match" the aspect ratio of the PostScript file "window" to the current display window. therefore I'm trying to produce a landscape eps file (with cgps_open or device) with arbitrary XSIZE and YSIZE values.
For example I want the output eps file, have a 800x500 size, but the following code's output, return a portrait figure that in the Latex output is 90 degree rotated.
IDL> cgPS_Open, 'f1.eps', Landscape=0,/nomatch
IDL> cgdisplay,800,500
IDL> cgplot,findgen(11),psym=-9,color='red',linestyle=2
IDL> cgps_close
how can i produce an eps file with arbitrary XYsize which do not rotat in Latex's output?
Thanks,
|
|
|
Re: cgps_open output size [message #89149 is a reply to message #89148] |
Mon, 28 July 2014 16:55  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Amin Farhang writes:
> I know that cgPS_Open will try to "match" the aspect ratio of the PostScript file "window" to the current display window. therefore I'm trying to produce a landscape eps file (with cgps_open or device) with arbitrary XSIZE and YSIZE values.
>
> For example I want the output eps file, have a 800x500 size, but the following code's output, return a portrait figure that in the Latex output is 90 degree rotated.
>
> IDL> cgPS_Open, 'f1.eps', Landscape=0,/nomatch
> IDL> cgdisplay,800,500
> IDL> cgplot,findgen(11),psym=-9,color='red',linestyle=2
> IDL> cgps_close
>
> how can i produce an eps file with arbitrary XYsize which do not rotat in Latex's output?
Well PostScript files rarely have a size of 800x500, because they are
sized in centimeters or inches, and I'm pretty sure that's an extremely
big file using either of those two units. :-)
Suppose you wanted to create a PostScript file that had this aspect
ratio, with the long side being six inches. Then you might do something
like this:
IDL> cgps_open, /gui, xsize=6, ysize=3.75, /inches, portrait=1, $
xoffset=1.25, yoffset=3.62, /nomatch
IDL> cgplot,findgen(11),psym=-9,color='red',linestyle=2
IDL> cgps_close
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|