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

Home » Public Forums » archive » Re: 3d plot help?
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
Re: 3d plot help? [message #16800] Tue, 17 August 1999 00:00
Eric Vella is currently offline  Eric Vella
Messages: 8
Registered: April 1999
Junior Member
I have used this type of plot in other programs, where it was called a
"lego" plot. Sure enough, IDL's Surface plot has a LEGO keyword. You might
try it.

Peter Clinch wrote:

> I have a 3d data set I want to graph, but the manuals are going in one
> eye and out the other after a day's programming to actually get the data
> in the first place... any help would thus be appreciated!
>
> The basic data consists of discrete points which will plot somewhere in
> a circular field to show where each point goes. The value of the data
> will be represented by a vertical bar, so in dodgy ASCII art, summat
> like this...
>
> |a
> | / |c
> | / |
> x ________/_________
> /
> /
> / |b
> y
>
> so point a is value 3 in the -ve x, +ve y quadrant, b is value 1 in the
> +ve x, -ve y quadrant, point c is value 2 in the x,y +ve quadrant, and
> so on.
>
> The points are discrete, so surface/contour plotting isn't applicable.
> Any pointers? (sorry if, as usual, I'm overlooking the staggeringly
> obvious...).
>
> thanks, Pete.
> --
> Peter Clinch University of Dundee
> Tel 44 1382 660111 ext. 33637 Medical Physics, Ninewells Hospital
> Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
> net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
Re: 3d plot help? [message #16802 is a reply to message #16800] Tue, 17 August 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Peter Clinch (p.j.clinch@dundee.ac.uk) writes:

> I have a 3d data set I want to graph, but the manuals are going in one
> eye and out the other after a day's programming to actually get the data
> in the first place... any help would thus be appreciated!
>
> The basic data consists of discrete points which will plot somewhere in
> a circular field to show where each point goes. The value of the data
> will be represented by a vertical bar, so in dodgy ASCII art, summat
> like this...
>
> |a
> | / |c
> | / |
> x ________/_________
> /
> /
> / |b
> y
>
> so point a is value 3 in the -ve x, +ve y quadrant, b is value 1 in the
> +ve x, -ve y quadrant, point c is value 2 in the x,y +ve quadrant, and
> so on.
>
> The points are discrete, so surface/contour plotting isn't applicable.
> Any pointers?

I think you want something like a 3D scatterplot with
the axes going through the origin. You can probably
figure it out faster than I can write it from these
two articles:

http://www.dfanning.com/tips/scatter3d.html
http://www.dfanning.com/tips/surface_axes_origin.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: 3d plot help? [message #16804 is a reply to message #16800] Tue, 17 August 1999 00:00 Go to previous message
Struan Gray is currently offline  Struan Gray
Messages: 178
Registered: December 1995
Senior Member
Peter Clinch, p.j.clinch@dundee.ac.uk writes:

> The points are discrete, so surface/contour plotting
> isn't applicable. Any pointers? (sorry if, as usual,
> I'm overlooking the staggeringly obvious...).

Draw the lines yourself. :-)

In direct graphics use PLOTS, which must have seemed like a
staggeringly obvious name to someone somewhere. In object graphics a
single IDLgrPolyline object will do the trick if you set up the
connectivity array (POLYLINES) correctly.

I reckon you owe me a walking pole.


Struan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: how to pass a parameter
Next Topic: 3d plot help?

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

Current Time: Wed Oct 08 18:55:49 PDT 2025

Total time taken to generate the page: 0.00489 seconds