patchGNU Octave - Patches: patch #9012, Abbreviations as Location input...


patch #9012: Abbreviations as Location input for the legend() command

Submitter:  Alwin Brettschneider <alwin>
Submitted:  Mon 30 May 2016 02:43:21 PM UTC
Category:  Core : other Priority:  5 - Normal
Status:  Wont Do Privacy:  Public
Assigned to:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Thu 02 Jan 2020 11:15:05 PM UTC, comment #2: 

Legend objects have been completely re-coded for the 6.1 release and this patch will no longer apply at all.  Hence, I'm marking this as "Wont Do".  I have filed a Feature Request to implement this functionality here

Rik <rik5>
Project Administrator
Wed 06 Jul 2016 11:49:48 AM UTC, comment #1: 

Thanks, Alwin.

Could you please submit a patch (unified diff)?

Lachlan Andrew <lachlan>
Mon 30 May 2016 02:43:21 PM UTC, original submission:  

Dear Octave team,

This is an adjustment that improves the compatibility of Octave with Matlab syntax.

I made an adjustment to the legend() command. In Matlab it is possible to specify the Location of the legend using only an abbreviation. For example: NorthEast may be abbreviated as NE. This optional notation is clearly mentioned in the Matlab help text for the legend() command, but I noticed today that this optional notation is not possible in Octave. I use this syntax rather often, therefor I made a relatively simple adjustment to allow this input in the legend.m file in lines 244-289.

I checked if the function works.

Example test of the new code:

I attached the original legend.m file as well a my adjusted version.

Alwin Brettschneider

Alwin Brettschneider <alwin>


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

Attach Files:

Attached Files
file #37310:  legend.m added by alwin (57KiB - application/octet-stream)
file #37311:  legend_original.m added by alwin (56KiB - application/octet-stream)


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 lachlan (Posted a comment)
  • -email is unavailable- added by alwin (Submitted the item)
  • -email is unavailable- added by alwin (I would like to hear what happens with my adjustment :))

    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 logged-in users can vote.





    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-01-02 rik5 StatusNone Wont Do
        Open/ClosedOpen Closed
    2016-07-07 lachlan CategoryNone Core : other
    2016-05-30 alwin Attached File- Added legend.m, #37310
        Attached File- Added legend_original.m, #37311
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.9