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

Home » Public Forums » archive » plotting one point with plot3d()
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
plotting one point with plot3d() [message #83404] Sun, 03 March 2013 06:19 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
In making an animation, I wanted to move a single point around a three-dimensional
plot, and ran into a bug in IDL 8.2.2. It turns out that it's possible to plot a single point
with plot3d():

IDL> p = plot3d( [1], [2], [3], symbol = "o" )

It is not possible, however, to update that point:

IDL> p.putdata, [2], [3], [4]
% Attempt to subscript SZDIMS with <LONG ( 1)> is out of range.

The two-dimensional equivalent works just fine with plot().
I've found a kludgy work-around, but just thought I'd mention the bug.
It also would be nice if plot() and plot3d() would accept scalar x, y, and z arguments
for the special case of plotting just one point.

All the best,

David
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: NG save method
Next Topic: Re: Grid lines misaligned when using CONTOUR and MAP_SET

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

Current Time: Wed Oct 08 15:34:30 PDT 2025

Total time taken to generate the page: 0.00433 seconds