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

Home » Public Forums » archive » Object Graphics newbie question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Object Graphics newbie question [message #25189] Fri, 25 May 2001 08:08 Go to next message
Arend Sluis is currently offline  Arend Sluis
Messages: 4
Registered: May 2001
Junior Member
I want to make a 2D plot of, say, 10k data points, and each data point
has associated with it a specific color and a set of secondary data
points (an emission line spectrum). Since I want to be able to zoom in
on and move around the data in order to make selection of individual
data points easier, I thought that Object Graphics would be the way to
go. However, it is 10k data points, so I clearly need to be careful in
order to have efficient code.

My first question is: should I be using Object Graphics? I have no feel
for how complicated it would be to implement the
zoom/translate/selection features in Direct Graphics.

My second question is: Suppose I should use Object Graphics, should I
use IDLgrPolygon for each data point, or should I try to do this using
IDLgrPlot with a self-defined IDLgrSymbol (I want a filled symbol in
order to see its color clearly). The "Objects and Object Graphics" IDL
manual gives both as a possibility, but I am unclear on the relative
merits of each.

Any help is greatly appreciated.

Arend.
--

===========================================
Rutgers, The State University of New Jersey
Department of Physics and Astronomy
136 Frelinghuysen Road
Piscataway, NJ 08854
Tel (732) 445-5881
Fax (732) 445-4343
===========================================
Re: Object Graphics newbie question [message #25338 is a reply to message #25189] Wed, 06 June 2001 10:31 Go to previous message
Pavel A. Romashkin is currently offline  Pavel A. Romashkin
Messages: 531
Registered: November 2000
Senior Member
I have a 2D object graphics DISPLAY routine that has add/remove, zoom,
name, color change, window linking and ROI capabilities. It can be
accessed via http://spot.colorado.edu/~romashki/idl/display.html
The only limitaion I can see is, as David pointed out, that there's no
way you can efficiently utilize a visual of 10k points that is about 10"
wide. Two windows would be a must, and here DISPLAY would be perfect
because you can display the same data in two windows, link them, zoom in
in one window, and use ROI to make selections that will show up in both
windows. Also, if you have to link every data point toanother object
then you'd have to write something for that. As it stands, DISPLAY does
not act in response to clicking on individual points, although
modiifications to the code would be minimal to achieve that.

Cheers,
Pavel


Arend Sluis wrote:
>
> I want to make a 2D plot of, say, 10k data points, and each data point
> has associated with it a specific color and a set of secondary data
> points (an emission line spectrum). Since I want to be able to zoom in
> on and move around the data in order to make selection of individual
> data points easier, I thought that Object Graphics would be the way to
> go. However, it is 10k data points, so I clearly need to be careful in
> order to have efficient code.
>
> My first question is: should I be using Object Graphics? I have no feel
> for how complicated it would be to implement the
> zoom/translate/selection features in Direct Graphics.
>
> My second question is: Suppose I should use Object Graphics, should I
> use IDLgrPolygon for each data point, or should I try to do this using
> IDLgrPlot with a self-defined IDLgrSymbol (I want a filled symbol in
> order to see its color clearly). The "Objects and Object Graphics" IDL
> manual gives both as a possibility, but I am unclear on the relative
> merits of each.
>
> Any help is greatly appreciated.
>
> Arend.
> --
>
> ===========================================
> Rutgers, The State University of New Jersey
> Department of Physics and Astronomy
> 136 Frelinghuysen Road
> Piscataway, NJ 08854
> Tel (732) 445-5881
> Fax (732) 445-4343
> ===========================================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDL 5.4 and MacOS 9.1
Next Topic: resizing an array of structures (uugh)

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

Current Time: Wed Oct 08 15:13:40 PDT 2025

Total time taken to generate the page: 0.00637 seconds