octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

__scatter__.m: Fix handling of NaNs in marker size param


From: Andreas Weber
Subject: __scatter__.m: Fix handling of NaNs in marker size param
Date: Tue, 10 Sep 2013 20:22:08 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130704 Icedove/17.0.7

Dear maintainers,

I figured out that currently scatter doesn't remove datapoints with NaNs
in the marker size vector. An example:

x = [1 2 3 4];
y = [1 1 1 1];
s = [20 60 40 120];

scatter(x, y, s, "red");
hold on

ix = 2;
x(ix) = y(ix) = s(ix) = NaN

scatter(x, y+1, s, "blue");
hold off
axis([0 5 0 3])

As you can see the NaN is just removed from x and y.

Can I push the attached patch which should fix this or am I missing
something?
Regards Andy

Attachment: __scatter__fix_NaNs_in_S.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]