comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » cgps_open output size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
cgps_open output size [message #89148] Mon, 28 July 2014 16:36 Go to next message
amin farhang is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL_IDLBridge and the virtual machine
Next Topic: Automatically generating IDL bindings

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:34:48 PDT 2025

Total time taken to generate the page: 0.00447 seconds