[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #61782] Errors with patch and fill
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #61782] Errors with patch and fill |
Date: |
Sun, 9 Jan 2022 13:36:31 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0 |
URL:
<https://savannah.gnu.org/bugs/?61782>
Summary: Errors with patch and fill
Project: GNU Octave
Submitted by: None
Submitted on: Sun 09 Jan 2022 06:36:29 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 6.3.0
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Details:
Hello Octave,
For patch and fill, some error meessages are difficult to understand.
Preparation: x = rand (1, 3); y = rand (1, 3);
Correct: patch (x, y, "c"); (draws a triangle)
or: fill (x, y, "c"); (same figure)
Test 1: Accidentally type x instead of c in color, so type: patch (x, y,
"x");
Expected error "x is not a valid color specification" but actual error is:
error: __go_patch__: set: invalid number of arguments, unable to create
graphics handle
which does not say what the problem was or how it should be fixed.
Test 2: Accidentally forget to say which color, so type: patch (x, y);
Expected error "missing argument 3 (color specification)" but actual error
is:
error: varargin(3): out of bound 2 (dimensions are 1x2)
which also does not say what went wrong in the call.
Test 3: Accidentally forget to say color for fill, so type: fill (x,
y);
Error similar to Test 2 about vargin(3) out of bound 2.
For fill (x, y, "x") making a typo in color, fill says "Invalid call to fill"
which is better than varrgin(3), though saying "invalid color" can be nicer.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61782>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #61782] Errors with patch and fill,
anonymous <=