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

Home » Public Forums » archive » Re: getting an IDLgrPlot drawn
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: getting an IDLgrPlot drawn [message #51486 is a reply to message #51484] Fri, 24 November 2006 07:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Laurens writes:

> Now, when I execute this code, I don't get what I want. I get some
> strange lines, of which you can view the result at
> http://sophorus.mine.nu/idlgrplot_weird.jpg.

Humm. Well, I think the problem is that you have a misunderstanding
of what you are doing with the Viewplane rectangle. It seems
to be you think this might be the size of the window used to
view the plot. In fact, it is establishing the coordinate
system you plan to use for viewing the plot. Two different
things.

When I first started with object graphics (and even now, come
to think of it) I preferred to set up my coordinate system to
go from 0 to 1 (what we refer to in direct graphics as a
normalized coordinate system). I was familiar with that
system, I knew how to lay things out in a window using
that system, etc. But what that means is that all your data,
then, has to be scaled so that it fits into that system.
Since I did this over and over again, I simply wrote a small
routine to do this for me, which I named NORMALIZE.

You can see how I would construct a simple plot like you
want in the program XPLOT, which you can find on my web
page:

http//www.dfanning.com/programs/xplot.pro

Notice that I don't bother with a scene object. It is really
not necessary unless you plan to have multiple plots in the
same window.

Cheers,

David

P.S. The weird lines in your output indicate a mismatch
between the data in the plot and the coordinate system
you have chosen. Most people don't see anything in this
situation, so you are MUCH luckier than most! :-)
--
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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: getting an IDLgrPlot drawn
Next Topic: Re: PLOT and colors

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

Current Time: Sat Oct 11 10:25:28 PDT 2025

Total time taken to generate the page: 1.19966 seconds