octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59167] line() does not accept mixed struct an


From: Rik
Subject: [Octave-bug-tracker] [bug #59167] line() does not accept mixed struct and property/value arguments
Date: Tue, 22 Sep 2020 17:25:44 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?59167>

                 Summary: line() does not accept mixed struct and
property/value arguments
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Tue 22 Sep 2020 02:25:42 PM PDT
                Category: Octave Function
                Severity: 2 - Minor
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

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.





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59167>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]