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 #51482 is a reply to message #51481] Fri, 24 November 2006 07:16 Go to previous messageGo to previous message
Laurens is currently offline  Laurens
Messages: 41
Registered: May 2006
Member
Laurens wrote:
> David Fanning wrote:
>> 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! :-)
>
> By the way; i'm getting redirected to http://www.w3.org/Protocols/ when
> trying that url?
OMG :| So stupid haha, forgot the colon ;)
[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 04:04:20 PDT 2025

Total time taken to generate the page: 0.80069 seconds