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

Home » Public Forums » archive » Object graphics questions and comment
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: Object graphics questions [message #43014 is a reply to message #9709] Fri, 11 March 2005 16:54 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> (3) Is it a hard-and-fast rule that if I am viewing a 240x250 image, I
> just have to set the viewplane rectangle to [0,0,240,250]? I have done
> that but the results don't look right.

No. The VIEWPLANE_RECT is not related to the size of an image. The
coordinates are with respect to normalized space. If you do not do any
normalization, the viewplane will need to be sized according to the data
space (i.e. [xmin, ymin, xmax - xmin, ymax - ymin] for a VIEWPLANE that
fits your plot exactly).

Typically, I will instead calculate the scaling factors for converting
the X and Y data ranges into normalized space. These scaling factors
are set via the [XYZ]COORD_CONV keywords of your graphics objects. The
area of my plot fills the normalized space of [0, 0, 1, 1]. I'll add
some buffer space around this viewplane to allow for annotations and the
like.

I do remember seeing a specific example in the IDL documentation
referring to coordinate transformations with object graphics. Try and
find that section -- it really is buried in there somewhere.


> (4) I have followed David Fanning's advice on how to create symbols,
> but I still don't see any, just a line plot.
> Thanks in advance,

I believe this problem will be resolved when you take care of you
viewplane issues. In your current situation, I sure wouldn't expect to
see normal looking symbols. So, get the VIEWPLANE right and then we'll
revisit this if need be.

-Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Object graphics questions
Next Topic: Re: Editting IDL files under MacOS X

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

Current Time: Sun Oct 12 08:48:07 PDT 2025

Total time taken to generate the page: 0.24430 seconds