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

Home » Public Forums » archive » ps_start output
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
ps_start output [message #87714] Tue, 25 February 2014 05:54 Go to next message
amin farhang is currently offline  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 Go to previous messageGo to next message
David Fanning is currently offline  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.")
Re: ps_start output [message #87750 is a reply to message #87714] Tue, 25 February 2014 23:56 Go to previous message
amin farhang is currently offline  amin farhang
Messages: 39
Registered: November 2010
Member
Thanks David,

Your new library works fine.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: learning how to use mpfit,. need help
Next Topic: Re: how to composite a mapcoord object using geographic coordinate(no projection)

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

Current Time: Wed Oct 08 15:06:37 PDT 2025

Total time taken to generate the page: 0.00646 seconds