plotting one point with plot3d() [message #83404] |
Sun, 03 March 2013 06:19  |
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   |
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 #83490 is a reply to message #83441] |
Thu, 07 March 2013 16:19  |
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
|
|
|