bugGNU Octave - Bugs: bug #59167, line() does not accept mixed...

 
 

bug #59167: line() does not accept mixed struct and property/value arguments

Submitter:  Rik <rik5>
Submitted:  Tue 22 Sep 2020 09:25:42 PM UTC
   
 
Category:  Octave Function Severity:  2 - Minor
Priority:  2 Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 22 Sep 2020 09:25:42 PM UTC, original submission:  

Matlab allows mixed arguments to graphics functions such as


line ([0, 1], [0, 1], 'LineStyle', ':', struct ('Linewidth', 3), 'Color', 'k')


Octave throws an error on the same code


octave:1> line ([0, 1], [0, 1], 'LineStyle', ':', struct ('Linewidth', 3), 'Color', 'k')
error: line: invalid number of PROPERTY / VALUE pairs
error: called from
    __line__ at line 55 column 5
    line at line 84 column 10


I suspect that it is not just line.m, but that most of the graphics functions have a problem with this syntax.

I've marked the severity as minor since there are easy workarounds and there haven't been users crying out for this feature.

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.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-22 rik5 Priority5 - Normal 2

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code