bugGNU Octave - Bugs: bug #50851, Plot: shorthand versions of...

 
 

bug #50851: Plot: shorthand versions of markers / colors

Submitter:  Ceral Paquet <octavebugs>
Submitted:  Sat 22 Apr 2017 04:16:46 PM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 23 Apr 2017 02:32:04 PM UTC, comment #1: 

The documentation for plot says that the line spec for a square object is 's'.  It doesn't make reference to 'sq' nor 'square'.  They may be accepting that, but trying to follow all of Matlab's undocumented behavior is hopeless.  Octave tries only for the documented behavior.

Similarly, the ColorSpec portion of a LineSpec is only documented to be a single character.  The "Color" property itself accepts a long form like "red", but the LineSpec is not documented to do so.

See http://www.mathworks.com/help/matlab/ref/plot.html#inputarg_LineSpec.

I'm marking this as Won't Fix since I believe Octave is compatible with all documented behavior.

Rik <rik5>
Group administrator
Sat 22 Apr 2017 04:16:46 PM UTC, original submission:  

There are a few cases where valid (in MATLAB) marker / color combinations do not work in Octave.


>> plot(1:10,'square') # works

>> plot(1:10,'sq')
error: plot: properties must appear followed by a value
error: called from
    __plt__ at line 96 column 15
    plot at line 223 column 10



>> plot(1:10,'or') # works

>> plot(1:10,'ored')
error: plot: properties must appear followed by a value
error: called from
    __plt__ at line 96 column 15
    plot at line 223 column 10




Ceral Paquet <octavebugs>

 

(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 (Posted a comment)
  • -email is unavailable- added by octavebugs (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-04-30 rik5 Open/ClosedOpen Closed
    2017-04-23 rik5 CategoryNone Plotting
        StatusNone Wont Fix

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code