diff scripts/plot/legend.m @ 11003:b1cfff739af5

legend.m: Index location cellstr to obtain a string.
author Ben Abbott <bpabbott@mac.com>
date Mon, 20 Sep 2010 18:47:52 -0400
parents 9f45b76c16e3
children d9c8916bb9dd
line wrap: on
line diff
--- a/scripts/plot/legend.m	Mon Sep 20 11:21:02 2010 -0400
+++ b/scripts/plot/legend.m	Mon Sep 20 18:47:52 2010 -0400
@@ -134,8 +134,8 @@
     pos = varargin{nargs};
     if (isnumeric (pos) && isscalar (pos) && round (pos) == pos)
       if (pos >= -1 && pos <= 4)
-        position = {"northeastoutside", "best", "northeast",
-                    "northwest", "southwest", "southeast"} (pos + 2);
+        position = [{"northeastoutside", "best", "northeast",
+                     "northwest", "southwest", "southeast"}] {pos + 2};
         nargs--;
       else
         error ("legend: invalid position specified");