Re: Pson and Psoff with xyouts [message #55440] |
Thu, 23 August 2007 08:22 |
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  |
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  |
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
>
|
|
|