Re: "4D" Plots [message #52901] |
Wed, 07 March 2007 13:59 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Phillip Bitzer writes:
> I can't believe this question hasn't been answered yet, but I can't
> seem to find it anywhere. Maybe I just missed it...
>
> I have 2 data sets, one containing x,y,z points and the other
> containing some value (say intensity) for each of those spatial
> points. I want to plot the intensity at each x,y,z point.
Sounds like a scatterplot to me:
http://www.dfanning.com/tips/scatter3d.html
You can also see how to do something similar in object
graphics, which you can drag around in 3D space, here:
http://www.dfanning.com/misc/scatter_surface.pro
Cheers,
David
--
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.")
|
|
|
Re: "4D" Plots [message #52902 is a reply to message #52901] |
Wed, 07 March 2007 12:57  |
Michael Galloy
Messages: 1114 Registered: April 2006
|
Senior Member |
|
|
IPLOT has a VERT_COLORS keyword that accepts an array of values, but
SYM_INDEX only accepts a scalar. So if you're willing to display the
4th dimension as colors instead of symbol types, how about:
IDL> x = randomu(seed, 100)
IDL> y = randomu(seed, 100)
IDL> z = randomu(seed, 100)
IDL>
IDL> c = byte(randomu(seed, 100) * 255)
IDL>
IDL> loadct, 5
IDL> tvlct, r, g, b, /get
IDL> rgb = [[r], [g], [b]]
IDL>
IDL> iplot, x, y, z, rgb_table=rgb, vert_colors=c, linestyle=6, $
IDL> sym_index=1, sym_size=0.2
Mike
--
www.michaelgalloy.com
|
|
|