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

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

[Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' corre


From: Ben Abbott
Subject: [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly
Date: Thu, 13 Oct 2011 23:56:06 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1

Follow-up Comment #14, bug #34417 (project octave):

For the two patches in comment #12, the facevertexcdata is empty, for ML.

Same for Octave.

I ran the test below.


x = [ 0 0; 1 1; 1 0 ];
y = [ 0 0; 0 1; 1 1 ];
h = patch (x, y, rand (size (x)));
xdata = get (h, 'xdata')
ydata = get (h, 'xdata')
cdata = get (h, 'cdata')
facevertexcdata = get (h, 'facevertexcdata')


Matlab returned,


xdata =

     0     0
     1     1
     1     0

ydata =

     0     0
     1     1
     1     0

cdata =

    0.6096    0.4564
    0.5747    0.7138
    0.3260    0.8844

facevertexcdata =

    0.6096
    0.5747
    0.3260
    0.4564
    0.7138
    0.8844


Octave gives an error for me.


error: __patch__: A(I): index out of bounds; value 4 out of bound 3
error: called from:
error:  
/Users/bpabbott/Development/mercurial/stable/scripts/plot/private/__patch__.m
at line 79, column 7
error:   /Users/bpabbott/Development/mercurial/stable/scripts/plot/patch.m at
line 50, column 20



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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