diff scripts/plot/__errplot__.m @ 6168:a3cd9e6fcd9c

[project @ 2006-11-15 15:36:18 by jwe]
author jwe
date Wed, 15 Nov 2006 15:36:19 +0000
parents 17f25cd588b2
children 2de853a110df
line wrap: on
line diff
--- a/scripts/plot/__errplot__.m
+++ b/scripts/plot/__errplot__.m
@@ -58,7 +58,7 @@
   nplots = size (a1, 2);
   len = size (a1, 1);
   for i = 1:nplots
-    fmtstr = fmt{1+mod(i-1,numel(fmt))};
+    ifmt = fmt{1+mod(i-1,numel(fmt))};
     if (i <= nkey)
       __plot_key_labels__{cf}{mxi,myi}{loff} = key{i};
     else
@@ -70,9 +70,9 @@
       case 3
 	tmp = [a1(:,i), a2(:,i), a3(:,i)];
       case 4
-	if (index (fmtstr, "boxxy") || index (fmtstr, "xyerr"))
+	if (index (ifmt, "boxxy") || index (ifmt, "xyerr"))
 	  tmp = [a1(:,i), a2(:,i), a3(:,i), a4(:,i)];
-	elseif (index (fmtstr, "xerr"))
+	elseif (index (ifmt, "xerr"))
 	  tmp = [a1(:,i), a2(:,i), a1(:,i)-a3(:,i), a1(:,i)+a4(:,i)];
 	else
 	  tmp = [a1(:,i), a2(:,i), a2(:,i)-a3(:,i), a2(:,i)+a4(:,i)];
@@ -88,9 +88,11 @@
 
     __plot_data__{cf}{mxi,myi}{j} = tmp;
 
-    __plot_command__{cf}{mxi,myi} ...
-	= __build_plot_command__ (j, "", fmtstr, loff, "");
-
+    __plot_command__{cf}{mxi,myi} \
+	= sprintf ("%s%s __plot_data__{__current_figure__}{__multiplot_xi__(__current_figure__),__multiplot_yi__(__current_figure__)}{%d} %s %s __plot_key_labels__{__current_figure__}{__multiplot_xi__(__current_figure__),__multiplot_yi__(__current_figure__)}{%d}",
+		   __plot_command__{cf}{mxi,myi},
+		   __plot_command_sep__, j, ifmt,
+		   gnuplot_command_title, loff);
     __plot_command_sep__ = ",\\\n";
 
     j++;