diff scripts/plot/private/__plt__.m @ 17273:53f1d5bb58bc

__plt__.m: Fix legend when plotting vector against matrix (bug #39542) * doc/interpreter/contributors.in: Add Falk Tannhäuser to list of contributors. * scripts/plot/private/__plt__.m: Use for loop index i to index list of legend strings.
author Falk Tannhäuser <falk.tannhauser@free.fr>
date Fri, 16 Aug 2013 18:36:49 -0700
parents abf384f5d243
children e04847bbcfdf
line wrap: on
line diff
--- a/scripts/plot/private/__plt__.m
+++ b/scripts/plot/private/__plt__.m
@@ -147,7 +147,7 @@
   endif
 
   for i = 1 : n
-    key = options.key;
+    key = options(i).key;
     if (! isempty (key))
       hlgnd = [hlgnd(:); h(i)];
       tlgnd = {tlgnd{:}, key};