octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #36193] scatter(X,Y,..,C) fails


From: John Hunt
Subject: [Octave-bug-tracker] [bug #36193] scatter(X,Y,..,C) fails
Date: Sun, 15 Apr 2012 17:00:03 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

Follow-up Comment #1, bug #36193 (project octave):

Same bug under linux

This seems related to the "gnuplot_hack" line 271 of __scatter__.m
It does not work when c is a vector.
changing this line to

gnuplot_hack = false;

removes the error in this case.

But then the the following fails (it should plot black points)

scatter(pm6(:,1),pm6(:,2),20,zeros(size(pm6, 1), 3),'filled')
error: vertical dimensions mismatch (153x3 vs 1x1)



finally changing this line 271 of __scatter__.m to

gnuplot_hack = numel (x) > 1 && size(c, 2) == 3 && strcmp (toolkit,
"gnuplot");


seems to work in both cases.
Patch attached.

(file #25652)
    _______________________________________________________

Additional Item Attachment:

File name: __scatter__.m.patch            Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36193>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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