[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40898] scatter3 needs better input validation
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #40898] scatter3 needs better input validation |
Date: |
Sun, 15 Dec 2013 22:37:57 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 |
Update of bug #40898 (project octave):
Category: Plotting with gnuplot => Plotting
Summary: scatter3 failure => scatter3 needs better
input validation
_______________________________________________________
Follow-up Comment #3:
The sample code is not calling scatter3 correctly. I changed the Summary for
the report to "scatter3 needs better input validation". The error message
currently given is too obscure.
>From the documentation,
The color of the markers is determined by C, which can be a string
defining a fixed color; a 3-element vector giving the red, green,
and blue components of the color; a vector of the same length as X
that gives a scaled index into the current colormap; or an Nx3
matrix defining the RGB color of each marker individually.
The calling code is:
c=rand(n,3);
scatter3 (x(:), y(:), z(:), s(:), c(:), "s");
which means that C is a column vector of size [3*N, 1] which doesn't
correspond to any of the allowed formats.
If the function is called with an Nx3 matrix (1 RGB color for each point) then
it works.
scatter3 (x(:), y(:), z(:), 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 <=
- [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, 2013/12/19
- [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