[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors i
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X |
Date: |
Thu, 27 Sep 2018 16:51:09 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 |
Update of bug #54747 (project octave):
Status: None => Confirmed
_______________________________________________________
Follow-up Comment #2:
The issue is that x and y both contain a value of NaN at position 101.
Scatter does not plot NaN values so it removes them from the data pool which
only leaves 200 values, while the color vector 'c' is 201.
Can you test the following on Matlab?
figure
x = [linspace(0,3*pi,100) nan linspace(0,3*pi,100)];
y = [cos(x) + rand(1,numel(x))];
sz = 80;
c = linspace(1,10,length(x));
h = scatter(x,y,sz,c,'o','LineWidth',1.5);
cdat = get (h, 'cdata');
cdat (98:102)
diff (ans)
I have a possible solution but I would like to match Matlab behavior.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54747>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X, avlas, 2018/09/27
- [Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X, avlas, 2018/09/27
- [Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X,
Rik <=
- [Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X, avlas, 2018/09/27
- [Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X, Rik, 2018/09/27
- [Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X, avlas, 2018/09/27
- [Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X, avlas, 2018/09/27
- [Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X, Rik, 2018/09/27
- [Octave-bug-tracker] [bug #54747] Scatter plot error: number of colors in C must match number of points in X, avlas, 2018/09/28