Mercurial > octave-libgccjit
changeset 18937: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 Thu Jul 17 15:32:19 2014 -0400 +++ b/scripts/plot/appearance/legend.m Thu Jul 17 11:20:26 2014 -0700 @@ -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