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

Home » Public Forums » archive » 3D Scatter Plot
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
3D Scatter Plot [message #48220] Thu, 06 April 2006 06:55 Go to next message
aecorner is currently offline  aecorner
Messages: 2
Registered: April 2006
Junior Member
Hi.

I created a 3D scatter plot (long, lat, alt) for some satellite data
(using the very helpful tips on David Fanning's website). A few
questions...

1) Is there a way to fill in the symbols? This seems like it should
be obvious.

2) I need each point to be a different color based on it's Aerosol
Optical Depth. I created an array of the color that each point needs
to be. Can I set the COLOR keyword equal to this array in the PLOTS
procedure to achieve that result?

3) Is there a way to display a 3D plot on a map projection? The x and
y axes are longitude and latitude and I would like to slip a map in
horizontally along the bottom of the plot.

Thanks,
Amy
Re: 3D Scatter Plot [message #89365 is a reply to message #48220] Wed, 27 August 2014 15:40 Go to previous messageGo to next message
sjone7 is currently offline  sjone7
Messages: 1
Registered: August 2014
Junior Member
How might one add error bars to a 3d scatter plot?
Re: 3D Scatter Plot [message #89368 is a reply to message #89365] Thu, 28 August 2014 14:29 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
On 08/27/14 18:40, sjone7 wrote:
> How might one add error bars to a 3d scatter plot?

How about plotting the data as semi-transparent orbs where the
dimensions of the orbs represent the error bar extents?

See David Fanning's example code at:
http://www.idlcoyote.com/tip_examples/scatter_surface.pro
The original article is at:
http://www.idlcoyote.com/tips/scatter3d.html

cheers,

paulv
Re: 3D Scatter Plot [message #89369 is a reply to message #89368] Thu, 28 August 2014 14:38 Go to previous messageGo to next message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
On 08/28/14 17:29, Paul van Delst wrote:
> On 08/27/14 18:40, sjone7 wrote:
>> How might one add error bars to a 3d scatter plot?
>
> How about plotting the data as semi-transparent orbs where the
> dimensions of the orbs represent the error bar extents?
>
> See David Fanning's example code at:
> http://www.idlcoyote.com/tip_examples/scatter_surface.pro
> The original article is at:
> http://www.idlcoyote.com/tips/scatter3d.html

I forgot to mention that you will have to define your own non-spherical
orb object (the one that comes with the IDL example code is spherical).

I guess it would be an "ellipsoid" object. Modifying the orb object
shouldn't be too hard (he says!) since it's the degenerate case where
the principal axes are all the same.

It will be a interesting programming exercise.

I wonder how fast it would render for, say, 10000 points?

cheers,

paulv
Re: 3D Scatter Plot [message #89370 is a reply to message #89369] Thu, 28 August 2014 20:39 Go to previous message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Thursday, August 28, 2014 3:38:34 PM UTC-6, Paul van Delst wrote:
> On 08/28/14 17:29, Paul van Delst wrote:
>
>> On 08/27/14 18:40, sjone7 wrote:
>
>>> How might one add error bars to a 3d scatter plot?
>
>>
>
>> How about plotting the data as semi-transparent orbs where the
>
>> dimensions of the orbs represent the error bar extents?
>
>>
>
>> See David Fanning's example code at:
>
>> http://www.idlcoyote.com/tip_examples/scatter_surface.pro
>
>> The original article is at:
>
>> http://www.idlcoyote.com/tips/scatter3d.html
>
>
>
> I forgot to mention that you will have to define your own non-spherical
>
> orb object (the one that comes with the IDL example code is spherical).
>
>
>
> I guess it would be an "ellipsoid" object. Modifying the orb object
>
> shouldn't be too hard (he says!) since it's the degenerate case where
>
> the principal axes are all the same.
>
>
>
> It will be a interesting programming exercise.
>
>
>
> I wonder how fast it would render for, say, 10000 points?
>
>
>
> cheers,
>
>
>
> paulv

The orb object can be scaled anisotropically to turn it into an ellipsoid, without modifying the orb class itself.

IDL> o = orb()
IDL> o.scale, 1., 1.5, 1.
IDL> xobjview, o
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: does restoring sav file routines open the way to some sort of decompilation?
Next Topic: CONTOUR keywords PATH_INFO and PATH_XY

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

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

Total time taken to generate the page: 0.00511 seconds