bugGNU Octave - Bugs: bug #46460, legend doesn't accept properties...

 
 

bug #46460: legend doesn't accept properties before labels - Matlab Compatibility

Submitted by:  Nicholas Jankowski <nrjank>
Submitted on:  Mon 16 Nov 2015 11:07:02 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: Wont FixAssigned to: None
Originator Name: Nicholas JankowskiOpen/Closed: Closed
Release: 4.0.0Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 28 Aug 2017 08:27:41 PM UTC, comment #2:

Posted to the mailing list, not the tracker:

Understood.

Caught me by surprise that it worked at all. Working with someone who's
apparently 'always done it that way' with Matlab so their scripts look
funny over here.

I'm guessing Matlab does a property-value pair check before deciding
anything is a label, as it seems you can intermix labels and property-value
pairs randomly. Out of curiosity, anyone know if there are other Matlab
functions where property-value pair calls act in a similar fashion?

John W. Eaton <jwe>
Project Administrator
Tue 17 Nov 2015 05:38:34 AM UTC, comment #1:

This is undocumented Matlab behavior. See http://www.mathworks.com/help/matlab/ref/legend.html. Octave doesn't bother to chase the undocumented functionality since Matlab may very well change to something new every release (which is 6 months these days). I'm marking as Won't Fix.

The easy workaround is just to use the documented form with labels first followed by property/value pairs.

Rik <rik5>
Project Administrator
Mon 16 Nov 2015 11:07:02 PM UTC, original submission:

code snippet demonstrating legend working in Matlab but erroring out in Octave.

Matlab (2015a) is fine with both legend commands. Octave 4.0.0 says:

and then adds the label 'location'

Nicholas Jankowski <nrjank>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by nrjank (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 17 Nov 2015 05:38:34 AM UTCrik5StatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1