ps_start output [message #87714] |
Tue, 25 February 2014 05:54  |
amin farhang
Messages: 39 Registered: November 2010
|
Member |
|
|
Dear All,
When I try to use eps format of ps_start in LaTex, the figure will rotate 90 degree, why this happen? and how I could solve it?
example:
IDL> ps_start,'Fig1.eps'
IDL> cgplot,dist(11),color='red',psym=4
IDL> ps_end
in Latex:
\includegraphics[scale=0.3]{Fig1.eps}
Thanks,
|
|
|
Re: ps_start output [message #87716 is a reply to message #87714] |
Tue, 25 February 2014 06:57   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Amin Farhang writes:
> When I try to use eps format of ps_start in LaTex, the figure will
rotate 90 degree, why this happen? and how I could solve it?
>
> example:
> IDL> ps_start,'Fig1.eps'
> IDL> cgplot,dist(11),color='red',psym=4
> IDL> ps_end
>
> in Latex:
> \includegraphics[scale=0.3]{Fig1.eps}
These PostScript routines try to match the aspect ratio of the output
with the aspect ratio of the current graphics window, or if a window
isn't open, with the graphics window that would be open. Almost always,
this is a landscape aspect ratio, so a landscape plot is made in
PostScript. That is why you are seeing rotation.
If that isn't what you want, you have to tell it differently. Something
like this will give you a portrait oriented plot:
cgPS_Open, ,'Fig1.eps', Landscape=0, /NoMatch
cgplot,dist(11),color='red',psym=4
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.")
|
|
|
|