[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #9012] Abbreviations as Location input for
From: |
Alwin Brettschneider |
Subject: |
[Octave-patch-tracker] [patch #9012] Abbreviations as Location input for the legend() command |
Date: |
Mon, 30 May 2016 14:43:24 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:38.9) Gecko/20100101 Goanna/2.0 Firefox/38.9 PaleMoon/26.2.2 |
URL:
<http://savannah.gnu.org/patch/?9012>
Summary: Abbreviations as Location input for the legend()
command
Project: GNU Octave
Submitted by: alwin
Submitted on: Mon 30 May 2016 02:43:21 PM GMT
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
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:
x=0:0.1:10;
y1=x;
y2=x.^2;
figure;
plot(x,y1,x,y2)
legend('y1','y2','Location','NW')
I attached the original legend.m file as well a my adjusted version.
regards,
Alwin Brettschneider
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 30 May 2016 02:43:21 PM GMT Name: legend.m Size: 57kB By: alwin
<http://savannah.gnu.org/patch/download.php?file_id=37310>
-------------------------------------------------------
Date: Mon 30 May 2016 02:43:21 PM GMT Name: legend_original.m Size: 56kB
By: alwin
<http://savannah.gnu.org/patch/download.php?file_id=37311>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?9012>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-patch-tracker] [patch #9012] Abbreviations as Location input for the legend() command,
Alwin Brettschneider <=