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

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

[Octave-bug-tracker] [bug #34936] scatter errors after completion when m


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #34936] scatter errors after completion when more than 100 points
Date: Sun, 04 Dec 2011 19:43:35 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2

Update of bug #34936 (project octave):

              Item Group:                    None => Matlab Compatibility   

    _______________________________________________________

Follow-up Comment #8:

Regarding the number of patches, ML produces one patch for each point. For
Rik's example;


x = rand(101,1);
y = rand(101,1);
colours = [ ones(101,1) zeros(101,1) zeros(101, 1)];
colours(1,:) = [0 0 1];
hg = scatter(x,y, 15, colours);
hp = findall (hg, 'type', 'patch');


The number of patch objects for, ML R2011b, is 101.

I recall we had discussed this a few years back (I think David Bateman noticed
this). I also recall this had been fixed.  Unfortunately, hg's log doesn't go
back far enough.

The earliest hg log entry is

http://hg.savannah.gnu.org/hgweb/octave/rev/2f435ed48143

Conveniently, it looks like this change reintroduced the incompatibility.

For the curent sources, I think ML compatibility may be restored by replacing
remove the "else" part of the if-block starting with


  if (numel (x) <= 100)


and unconditionally using the code associated with a logical true.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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