Mercurial > jwe > octave
changeset 26817:4eed5ba2586a
legend.m: Remove obsolete specification of "location" by single numeric arg.
* legend.m: Remove FIXME and obsolete input checking for a numeric position
specifier as final argument to legend function.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 02 Mar 2019 10:56:18 -0800 |
parents | 2703e1407887 |
children | 45270d3aa861 |
files | scripts/plot/appearance/legend.m |
diffstat | 1 files changed, 0 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m Fri Mar 01 23:31:42 2019 +0000 +++ b/scripts/plot/appearance/legend.m Sat Mar 02 10:56:18 2019 -0800 @@ -203,23 +203,6 @@ find_leg_hdl = (nargs == 0); # possibly overridden propvals = {}; - ## Process old way of specifying location with a number rather than a string. - ## FIXME: When can this be deleted? - if (nargs > 0) - pos = varargin{nargs}; - if (isnumeric (pos) && isscalar (pos) && pos == fix (pos)) - warning ("legend: specifying location with a numeric argument is obsolete and will be removed from a future version of Octave, use a string specification instead"); - if (pos >= -1 && pos <= 4) - location = [{"northeastoutside", "best", "northeast", - "northwest", "southwest", "southeast"}] {pos + 2}; - varargin(nargs) = []; - nargs -= 1; - else - error ("legend: invalid location specified"); - endif - endif - endif - ## Find "location" and "orientation" property/value pairs while (nargs > 1) pos = varargin{nargs-1};