# HG changeset patch # User Rik # Date 1405621226 25200 # Node ID 961ecaf9fb57256fbf29a8991317dc88da9e7c3f # Parent 4ff59f43f7ecdd919eaf0b9592b4d8e92552a4a6 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. diff -r 4ff59f43f7ec -r 961ecaf9fb57 scripts/plot/appearance/legend.m --- 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