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

Home » Public Forums » archive » Re: Pson and Psoff with xyouts
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
Re: Pson and Psoff with xyouts [message #55440] Thu, 23 August 2007 08:22
Yikes is currently offline  Yikes
Messages: 8
Registered: January 2007
Junior Member
On Aug 23, 1:14 pm, David Fanning <n...@dfanning.com> wrote:
> cakeo writes:
>> Below is an dummy code i used to create the figure.
>
>> pson, filename = 'hello.eps'
>> plot, findgen(100), findgen(500)
>> xyouts, 15, 580, 'hello', /device
>> psoff
>
>> Hope you can help.
>
> If you want things to be positioned correctly on your
> display and in PostScript don't EVER use DEVICE
> coordinates. Instead, choose wisely! Either of
> your other two choices would have worked. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Thank you. works beautifully. :)

Keiko
Re: Pson and Psoff with xyouts [message #55443 is a reply to message #55440] Thu, 23 August 2007 05:14 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
cakeo writes:

> Below is an dummy code i used to create the figure.
>
> pson, filename = 'hello.eps'
> plot, findgen(100), findgen(500)
> xyouts, 15, 580, 'hello', /device
> psoff
>
> Hope you can help.

If you want things to be positioned correctly on your
display and in PostScript don't EVER use DEVICE
coordinates. Instead, choose wisely! Either of
your other two choices would have worked. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Pson and Psoff with xyouts [message #55444 is a reply to message #55443] Thu, 23 August 2007 05:14 Go to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
cakeo wrote:
> Hi,
>
> I am using PSON and PSOFF to create .eps files of my figures. It's
> been working amazingly until I put some annotations on my figure using
> xyouts. The position of the annotations are not where I assigned it to
> be and it is different from what I see in the IDL figure window (which
> is correct).
>
> Below is an dummy code i used to create the figure.
>
> pson, filename = 'hello.eps'
> plot, findgen(100), findgen(500)
> xyouts, 15, 580, 'hello', /device

You should try to use either /normal (normalized coordinates) or /data
instead of /device.

Ciao,
Paolo


> psoff
>
> Hope you can help. Thank you.
>
> Keiko
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Pson and Psoff with xyouts
Next Topic: Re: Reading Landsat FAST data in ENVI

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

Current Time: Wed Oct 08 11:42:02 PDT 2025

Total time taken to generate the page: 0.01063 seconds