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

 
 

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

Submitted by:  Rik <rik5>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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.5