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

Home » Public Forums » archive » Re: Altered device coordinates after first call
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Altered device coordinates after first call [message #50838 is a reply to message #50837] Mon, 16 October 2006 09:36 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Juan Arrieta writes:

> Please have a look at my code, the data is of course fictitious, but
> the general idea is to produce a nice looking letter-size output. If
> you want to see the PS, uncomment the corresponding lines. The code as
> it is will produce a direct graphics plot.

Humm. Well, there is a LOT going wrong in this code. :-)

The main thing is that you are drawing graphics in DATA
coordinates, but you haven't established a DATA coordinate
system in the code. So it's using the *last* one that did
get established, which could be anything at all. That's
why you can't reproduce anything.

It looks to me like you want to draw graphics in a NORMAL
(normalized) coordinate system. If so, you will need to set
a NORMAL keyword on all your PLOTS and XYOUTS commands.

I would also draw the plots *first*, then put all the
annotation on the plots. It is the NOERASE keyword on
your PLOT commands that I think is really screwing you
up here. I see why you want to do it, since all your
annotation disappears when the first plot is drawn, but
it plays absolute havoc with your data coordinate system.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IImage Command Line
Next Topic: Re: IDL's built-in function DILATE and ERODE doesn't work as described in help

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

Current Time: Tue Dec 02 07:57:14 PST 2025

Total time taken to generate the page: 2.48247 seconds