bugGNU Octave - Bugs: bug #57569, patch (x, y, c,...

 
 

bug #57569: patch (x, y, c, "property", "value") throws an error

Submitter:  Rik <rik5>
Submitted:  Thu 09 Jan 2020 09:34:46 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  rik5
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 09 Jan 2020 10:06:32 PM UTC, comment #1: 
Rik <rik5>
Group administrator
Thu 09 Jan 2020 09:34:46 PM UTC, original submission:  

Code to reproduce issue:


x = [0, 9, 0];
y = [0, 0, 9];
c = uint8([0, 2, 4])';
patch (x, y, c, "facecolor", "interp");


This is a documented calling form, and Matlab accepts it.  Octave throws this error


error: __go_patch__: unable to create graphics handle
error: called from
    __patch__ at line 178 column 7
    patch at line 91 column 18


Issue seems to be that the input validation in _patch_.m is incorrect.

Rik <rik5>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-09 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code