Mercurial > hg > octave-jordi
changeset 18936:961ecaf9fb57
legend.m: Tweak syntax when setting multiple "unit" properties to be more readable.
* legend.m (updatelegend): Tweak syntax when setting multiple "unit" properties
to be more readable.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 17 Jul 2014 11:20:26 -0700 |
parents | 4ff59f43f7ec |
children | 18e46285a608 |
files | scripts/plot/appearance/legend.m |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/appearance/legend.m +++ b/scripts/plot/appearance/legend.m @@ -1089,8 +1089,7 @@ set (hax, "position", position); set (hax, "outerposition", outerposition); endswitch - ## Crazy syntax because set() only seems to support row vectors - set (hax, repmat ({"units"}, [1 numel(hax)]), units(:)'); + set (hax, {"units"}, units); h = legend (hax(1), hplots, get (h, "string")); unwind_protect_cleanup