[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53215] plot3 with empty arguments does not se
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #53215] plot3 with empty arguments does not set the return plot handle |
Date: |
Mon, 26 Feb 2018 12:12:22 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #53215 (project octave):
Severity: 3 - Normal => 1 - Wish
Priority: 5 - Normal => 3 - Low
Item Group: Unexpected Error => Matlab Compatibility
_______________________________________________________
Follow-up Comment #1:
I'm marking this as "Matlab Compatibility" and lowering the priority as there
are many, many workarounds.
As a start, a typical way is to embed a special condition for the first frame
in the animation.
for i = 1:num_frames
... calculate data ...
if (i == 1)
## First frame, use plot to create figure and axes
h = plot3 (xdata, ydata, zdata);
else
## Update data to refresh plot with new animation frame
set (h, "xdata", xdata, "ydata", ydata, "zdata", zdata);
endif
endfor
Alternatively, use throwaway data since it is just going to be overwritten
h = plot3 (0,0,0);
for i = 1:num_frames
... calculate data ...
## Update data to refresh plot with new animation frame
set (h, "xdata", xdata, "ydata", ydata, "zdata", zdata);
endif
endfor
If for some reason the data really, really needs to be null at the start then
you can make it so by passing property/value pairs in the plot3 call.
h = plot3 (0,0,0, 'xdata', [], 'ydata', [], 'zdata', [])
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53215>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/