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

Home » Public Forums » archive » 3D plot symbols
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 plot symbols [message #20780] Wed, 26 July 2000 00:00 Go to next message
rkj is currently offline  rkj
Messages: 66
Registered: February 1996
Member
I would like to be able to create a 3-D scatter plot
with 3-D symbols. It would be nice if I could define
a cube with USERSYM. I can almost get what I want
using PLOTS but the symbols are "flat" in 3-D.

Can I get this functionality using the polygon
rendering routines? I am particularly worried about
speed since the plot will be animated (continuously
updated as symbol values change).

Thanks.

Kyle
Re: 3D plot symbols [message #20855 is a reply to message #20780] Thu, 27 July 2000 00:00 Go to previous messageGo to next message
rkj is currently offline  rkj
Messages: 66
Registered: February 1996
Member
Pavel Romashkin (promashkin@cmdl.noaa.gov) wrote:
: Use circles instead of squares. There will be no way to tell if they are
: 2D or 3D, circles or spheres :-)
: Cheers,
: Pavel

Actually, you *can* tell the difference. When viewed in 3-D the "circles"
appear as discs, not spheres.

On a related note, it is interesting that a circle is not one of the
standard symbols. Maybe it is due to its complexity which leads to
slower rendering. Who knows.

Kyle
Re: 3D plot symbols [message #20863 is a reply to message #20780] Thu, 27 July 2000 00:00 Go to previous messageGo to next message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
Use circles instead of squares. There will be no way to tell if they are
2D or 3D, circles or spheres :-)
Cheers,
Pavel

"R. Kyle Justice" wrote:
>
> I would like to be able to create a 3-D scatter plot
> with 3-D symbols. It would be nice if I could define
> a cube with USERSYM. I can almost get what I want
> using PLOTS but the symbols are "flat" in 3-D.
>
> Can I get this functionality using the polygon
> rendering routines? I am particularly worried about
> speed since the plot will be animated (continuously
> updated as symbol values change).
>
> Thanks.
>
> Kyle
Re: 3D plot symbols [message #20864 is a reply to message #20780] Thu, 27 July 2000 00:00 Go to previous messageGo to next message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
Use circles instead of squares. There will be no way to tell if they are
2D or 3D, circles or spheres :-)
Cheers,
Pavel

"R. Kyle Justice" wrote:
>
> I would like to be able to create a 3-D scatter plot
> with 3-D symbols. It would be nice if I could define
> a cube with USERSYM. I can almost get what I want
> using PLOTS but the symbols are "flat" in 3-D.
>
> Can I get this functionality using the polygon
> rendering routines? I am particularly worried about
> speed since the plot will be animated (continuously
> updated as symbol values change).
>
> Thanks.
>
> Kyle
Re: 3D plot symbols [message #20866 is a reply to message #20780] Thu, 27 July 2000 00:00 Go to previous messageGo to next message
rkj is currently offline  rkj
Messages: 66
Registered: February 1996
Member
David Fanning (davidf@dfanning.com) wrote:
: R. Kyle Justice (rkj@dukebar.crml.uab.edu) writes:
:
: > I would like to be able to create a 3-D scatter plot
: > with 3-D symbols. It would be nice if I could define
: > a cube with USERSYM. I can almost get what I want
: > using PLOTS but the symbols are "flat" in 3-D.

: I have a feeling the PLOTS symbols are "flat"
: because you forgot to set a T3D keyword on the
: PLOTS command. :-)

I am using the T3D keyword. The reason the symbols are
flat is because they have no depth. USERSYM only takes
x and y vertices. The plot is rendered properly, even
the symbols. They appear flat because they only have
1 side (actually 2, I guess; front and back).


: I can't see any reason why 3D symbols with PLOTS
: would be prohibited, even in PV-Wave, which I
: assume you are using.

Yep, I am primarily using PV-Wave but I don't really see
a way to get 3-D symbols in IDL either, at least not
with USERSYM. Is there a way to make 3-D symbols? This
would be a nice feature, especially since the 2-D symbols
appear to be rendered as if they are 3-D.


: > Can I get this functionality using the polygon
: > rendering routines? I am particularly worried about
: > speed since the plot will be animated (continuously
: > updated as symbol values change).

: I think speed will be a problem using PLOTS. I'd
: offer you something in the line of object graphics
: 3D scatterplots, but I doubt it would apply. :-(

It appears to be fast enough for my purposes with 2-D
symbols. If I have to use the polygon routines I'm
sure to get a big slowdown, even if I knew what I
was going (and I don't).

Why does the object graphics suggestion not surprise
me ;-)


: Cheers,

: David

Kyle
Re: 3D plot symbols [message #20874 is a reply to message #20780] Wed, 26 July 2000 00:00 Go to previous messageGo to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
R. Kyle Justice (rkj@dukebar.crml.uab.edu) writes:

> I would like to be able to create a 3-D scatter plot
> with 3-D symbols. It would be nice if I could define
> a cube with USERSYM. I can almost get what I want
> using PLOTS but the symbols are "flat" in 3-D.

I have a feeling the PLOTS symbols are "flat"
because you forgot to set a T3D keyword on the
PLOTS command. :-)

I can't see any reason why 3D symbols with PLOTS
would be prohibited, even in PV-Wave, which I
assume you are using.

> Can I get this functionality using the polygon
> rendering routines? I am particularly worried about
> speed since the plot will be animated (continuously
> updated as symbol values change).

I think speed will be a problem using PLOTS. I'd
offer you something in the line of object graphics
3D scatterplots, but I doubt it would apply. :-(

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 [message #23712 is a reply to message #20780] Thu, 08 February 2001 13:24 Go to previous message
btt is currently offline  btt
Messages: 345
Registered: December 2000
Senior Member
Hi,

You might try http://www.dfanning.com/tips/scatter3d.html. On that page,
David describes how to accomplish just what you want using direct graphics.
I think he has a routine called FSC_Scatter that does the same but in object
graphics. Object graphics really shine in the 3d realm.

Ben

Mike Garrett wrote:

> Hey all,
>
> I have been trying to create a 3D plot. I have a two dimensional array
> that holds the z values. I just want to plot a point at that point in 3D
> space, so if I have data(1,2) = 3 then i want to put a point at x = 1, y
> =2 and z = 3. However, with the surface command a line is always drawn to
> connect this point with other points. Is there another command I am not
> familiar with or any other ideas?
>
> Thanks
>
> Mike

--
Ben Tupper
Bigelow Laboratory for Ocean Sciences
180 McKown Point Rd.
W. Boothbay Harbor, ME 04575
btupper@bigelow.org
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Faster linear interpolation?
Next Topic: Re: Displaying Medical Images Anonymously

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

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

Total time taken to generate the page: 0.00697 seconds