[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #43850] fill() returns only one handle when pl
From: |
sergey plotnikov |
Subject: |
[Octave-bug-tracker] [bug #43850] fill() returns only one handle when plotting multiple polygons |
Date: |
Fri, 19 Dec 2014 15:15:10 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 |
URL:
<http://savannah.gnu.org/bugs/?43850>
Summary: fill() returns only one handle when plotting
multiple polygons
Project: GNU Octave
Submitted by: nul0m
Submitted on: Fri 19 Dec 2014 03:15:09 PM GMT
Category: Plotting
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:
Matlab returns you as may handles as many polygons you plotted using fill().
See simple example below.
Matlab:
>> close all
vertices = [0 0;1 0;1 1;0 1];
h = fill ([vertices(:,1),vertices(:,1)+1,vertices(:,1)+2],
[vertices(:,2),vertices(:,2)+1,vertices(:,2)+2], 'm')
h =
0.0016
175.0021
176.0016
Octave:
>> close all
>> vertices = [0 0;1 0;1 1;0 1];
>> h = fill ([vertices(:,1),vertices(:,1)+1,vertices(:,1)+2],
[vertices(:,2),vertices(:,2)+1,vertices(:,2)+2], 'm')
h = -1.3670
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?43850>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #43850] fill() returns only one handle when plotting multiple polygons,
sergey plotnikov <=