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

Home » Public Forums » archive » Highlighting data points on multiple plots
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
Highlighting data points on multiple plots [message #82280] Fri, 23 November 2012 11:47
markjamie is currently offline  markjamie
Messages: 30
Registered: November 2012
Member
Im interesed in highlighting data points on multiple IDL plots of the same data vectors but don't know where to start!

Lets say,

t = time
w = measurement
x = position
y = position
z = position

Where w, x, y, and z are all vectors, given as a function of a function of t (time). All the vectors have the same number of elements.

I've plotted three graphs in a single window using the new IDL 8 graphics, a 3D view, a top down 2D view of the 3D plot, and a 2D line plot showing one of the variables as a function of t (time). In essence its just three different ways of displaying the same data. In each case the data points are coloured according to the same measured quantity, w.

For example:

win = window(window_title='my plot', dimensions=[1000,1000]

P = plot3d(x, y, z, symbol='o', /sym_filled, rgb_table=33, vert_colors=bytscl(w) , /current )
P2 = plot(x , y, symbol='o', /sym_filled, rgb_table=33, vert_colors=bytscl(w) , /current )
P3 = plot(t, z, symbol='o', /sym_filled, rgb_table=33, vert_colors=bytscl(w) , /current )

(I've ommitted any formatting or positioning to make things easier to read in this post).

Given it's the same data being used in each plot just in different combinations, I'd like to be able to click on a data point in one graph and have it highlighted in the other two plots so things can be easily correlated.

Can anyone suggest a way of doing this?

Many thanks

Mark
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Device Coordinates vs Normalized Coordinates
Next Topic: Re: Device Coordinates vs Normalized Coordinates

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

Current Time: Wed Oct 08 15:06:22 PDT 2025

Total time taken to generate the page: 0.00412 seconds