[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40777] fill() should replicate column vector
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #40777] fill() should replicate column vector cdata |
Date: |
Mon, 02 Dec 2013 18:48:46 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 |
URL:
<http://savannah.gnu.org/bugs/?40777>
Summary: fill() should replicate column vector cdata
Project: GNU Octave
Submitted by: rik5
Submitted on: Mon 02 Dec 2013 10:48:45 AM PST
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
When given multiple polygons to display, fill should replicate per-vertex
cdata for compatibility with Matlab.
Sample code:
x = [0 0
1 0.5
1 0.5
0 0];
y = [0 0
0 0
1 0.5
1 0.5];
c = [1 2 3 4]';
fill (x, y, c);
error: patch: size of x, y, and c must be equal
error: called from:
error:
/home/rik/wip/Projects_Mine/octave-dev/scripts/plot/draw/private/__patch__.m
at line 168, column 13
error: /home/rik/wip/Projects_Mine/octave-dev/scripts/plot/draw/fill.m at
line 97, column 20
But manually replicating the data works
fill (x, y, [c, c]);
I don't know if the best spot for this is within fill.m or whether it belongs
in __patch__.m.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40777>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40777] fill() should replicate column vector cdata,
Rik <=