[Top][All Lists]
[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: |
Fri, 14 Oct 2011 22:44:23 +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 #17, bug #34417 (project octave):
I found the problem (local to me). Now I get the same result as jwe.
I have a new example that works differently from ML.
x = [ 0 0; 1 1; 1 0 ];
y = [ 0 0; 0 1; 1 1 ];
c = zeros ([size(x),3]);
c(:,:,3) = 1;
h = patch (x, y, c);
facevertexcdata = get (h, 'facevertexcdata')
Matlab and Octave return the same facevertexcdata ...
facevertexcdata =
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
0 0 1
But gnuplot complains
multiplot> plot "-" binary format='%float64' record=3 using ($1):($2) title ""
with filledcurve lc rgb "#000000" fillstyle transparent solid 0.000000lc rgb
"#000080" fillstyle transparent solid 128.000000lc rgb "#800000" fillstyle
transparent solid 0.000000lc rgb "#000000" fillstyle transparent solid
0.000000lc rgb "#000080" fillstyle transparent solid 128.000000lc rgb
"#808080" fillstyle transparent solid 128.000000lc rgb "#000000" fillstyle
transparent solid 1.000000 , "-" binary format='%float64' record=4 using
($1):($2) title "" with lines linewidth 0.500000 lt 1 lc rgb "#000000" , "-"
binary format='%float64' record=3 using ($1):($2) title "" with filledcurve lc
rgb "#000000" fillstyle transparent solid 0.000000lc rgb "#000080" fillstyle
transparent solid 128.000000lc rgb "#800000" fillstyle transparent solid
0.000000lc rgb "#000000" fillstyle transparent solid 0.000000lc rgb "#000080"
fillstyle transparent solid 128.000000lc rgb "#808080" fillstyle transparent
solid 128.000000lc rgb "#000000" fillstyle transparent solid 1.000000 , "-"
binary format='%float64' record=4 using ($1):($2) title "" with lines
linewidth 0.500000 lt 1 lc rgb "#000000" ;
^
line 0: duplicated or contradicting arguments in plot options
The FLTK backend produces the correct result.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34417>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, (continued)
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, Rik, 2011/10/08
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, Ben Abbott, 2011/10/09
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, Ben Abbott, 2011/10/09
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, Ben Abbott, 2011/10/09
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, Rik, 2011/10/09
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, Ben Abbott, 2011/10/13
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, John W. Eaton, 2011/10/13
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, Ben Abbott, 2011/10/13
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, John W. Eaton, 2011/10/14
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly, Ben Abbott, 2011/10/14
- [Octave-bug-tracker] [bug #34417] patch() does not process 'cdata' correctly,
Ben Abbott <=