changeset 17265: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 aa09b746fa16
children b1a09f72a520
files doc/interpreter/contributors.in scripts/plot/private/__plt__.m
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/doc/interpreter/contributors.in	Fri Aug 16 15:43:03 2013 -0400
+++ b/doc/interpreter/contributors.in	Fri Aug 16 18:36:49 2013 -0700
@@ -273,6 +273,7 @@
 Ivan Sutoris
 John Swensen
 Daisuke Takago
+Falk Tannhäuser
 Ariel Tankus
 Matthew Tenny
 Georg Thimm
--- a/scripts/plot/private/__plt__.m	Fri Aug 16 15:43:03 2013 -0400
+++ b/scripts/plot/private/__plt__.m	Fri Aug 16 18:36:49 2013 -0700
@@ -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};