[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: |
Marshall |
Subject: |
[Octave-bug-tracker] [bug #53215] plot3 with empty arguments does not set the return plot handle |
Date: |
Thu, 1 Mar 2018 23:20:33 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0 |
Follow-up Comment #2, bug #53215 (project octave):
I did a bit more exploration and found that the set command does not work as
expected in the situation I mentioned:
figure
h = plot3([],[],[])
set (h, 'xdata', rand(10,1), 'ydata', rand(10,1), 'zdata', rand(10,1));
This doesn't result in adding a line to the new figure, not even in matlab,
because the figure handle is empty so nothing is set. So this simplified my
problem greatly when trying to fix this myself: I don't actually need a handle
returned for each empty data set, just an empty array if there are no data
sets. This is exactly the way that
h=plot([],[])
works as well, which does not error out in octave as plot3 does. A simple fix
is then to add
retval = [];
somewhere near the top of plot3.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53215>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #53215] plot3 with empty arguments does not set the return plot handle,
Marshall <=