diff scripts/plot/legend.m @ 8291:53f35799b235

Add support for left/right argument to the legend function
author David Bateman <dbateman@free.fr>
date Thu, 30 Oct 2008 14:15:12 +0100
parents 79c874fe5100
children 9f34f7636fe0
line wrap: on
line diff
--- a/scripts/plot/legend.m
+++ b/scripts/plot/legend.m
@@ -130,6 +130,10 @@
 	    set (ca, "key", "on", "keybox", "on");
 	  case "boxoff"
 	    set (ca, "keybox", "off");
+	  case "left"
+	    set (ca, "keyreverse", "off")
+	  case "right"
+	    set (ca, "keyreverse", "on")
 	  otherwise
 	    typ = get (kids (k), "type");
 	    while (k <= nkids && ! strcmp (typ, "line") &&