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 
Switch to threaded view of this topic Create a new topic Submit Reply
plotting one point with plot3d() [message #83404] Sun, 03 March 2013 06:19 Go to next 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
Re: plotting one point with plot3d() [message #83441 is a reply to message #83404] Wed, 06 March 2013 08:25 Go to previous messageGo to next message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On Sunday, March 3, 2013 7:19:49 AM UTC-7, David Grier wrote:
> 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

Done! Eddie fixed this yesterday; it'll be in 8.2.3.

mp
Re: plotting one point with plot3d() [message #83460 is a reply to message #83404] Tue, 05 March 2013 06:56 Go to previous messageGo to next message
Mark Piper is currently offline  Mark Piper
Messages: 198
Registered: December 2009
Senior Member
On Sunday, March 3, 2013 7:19:49 AM UTC-7, David Grier wrote:
>
> 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.
>

Thanks, David; I'll look into this.

mp
Re: plotting one point with plot3d() [message #83490 is a reply to message #83441] Thu, 07 March 2013 16:19 Go to previous message
dg86 is currently offline  dg86
Messages: 118
Registered: September 2012
Senior Member
On Wednesday, March 6, 2013 11:25:16 AM UTC-5, Mark Piper wrote:
> On Sunday, March 3, 2013 7:19:49 AM UTC-7, David Grier wrote:
>
>> 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
>
>
>
> Done! Eddie fixed this yesterday; it'll be in 8.2.3.
>
>
>
> mp

Outstanding! Many thanks,

David
  Switch to threaded view of this topic Create a new topic Submit Reply
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:16:46 PDT 2025

Total time taken to generate the page: 0.00514 seconds