[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40898] scatter3 needs better input validation
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #40898] scatter3 needs better input validation |
Date: |
Thu, 19 Dec 2013 13:14:39 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.55 Safari/537.36 |
Follow-up Comment #8, bug #40898 (project octave):
Thanks for helping me with this. I think there is another bug in
scatter/scatter3. An error is generated if one is specifying individual point
colors and all of the points happen to be the same color. If all of the points
are close to the same color, there is no error but there is also no graph. If
the colors are more different, then everything works as expected.
Finally, what specific values of tiny cause various behaviors seems to depend
on what else I have done in the current Octave session. Sorry. My exact test
code is below. Try .1, 1e-6 and 0.
Here is the error I see.
20>scatter3test
n = 101
tiny = 0
error: vertical dimensions mismatch (101x3 vs 1x1)
error: called from:
error: C:SoftwareOctave-3.6.4shareoctave3.6.4mplotprivate__go_draw_ax
es__.m at line 1054, column 36
error: C:SoftwareOctave-3.6.4shareoctave3.6.4mplotprivate__go_draw_fi
gure__.m at line 167, column 19
error: C:SoftwareOctave-3.6.4shareoctave3.6.4mplot__gnuplot_drawnow__.
m at line 86, column 5
21>
here is the test code
clear
clf
n=101
x = rand (n,1);
y = rand (n,1);
z = rand (n,1);
s=20*rand(n,1);
tiny=0
c=abs(0.5*(ones(n,3)-tiny*rand(n,3)));
% scatter3 (x, y, z, s, c, "s");
scatter (x, y, s, c, "s");
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40898>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40898] scatter3 failure, anonymous, 2013/12/14
- [Octave-bug-tracker] [bug #40898] scatter3 failure, Rik, 2013/12/15
- [Octave-bug-tracker] [bug #40898] scatter3 failure, Philip Nienhuis, 2013/12/15
- [Octave-bug-tracker] [bug #40898] scatter3 needs better input validation, Rik, 2013/12/15
- [Octave-bug-tracker] [bug #40898] scatter3 needs better input validation, anonymous, 2013/12/15
- [Octave-bug-tracker] [bug #40898] scatter3 needs better input validation, Rik, 2013/12/15
- [Octave-bug-tracker] [bug #40898] scatter3 needs better input validation, anonymous, 2013/12/17
- [Octave-bug-tracker] [bug #40898] scatter3 needs better input validation, Rik, 2013/12/17
- [Octave-bug-tracker] [bug #40898] scatter3 needs better input validation,
anonymous <=
- [Octave-bug-tracker] [bug #40898] scatter3 needs better input validation, Rik, 2013/12/19
- [Octave-bug-tracker] [bug #40898] scatter3 needs better input validation, Rik, 2013/12/24