diff scripts/plot/private/__errplot__.m @ 10635:d1978e7364ad

Print name of function in error() string messages.
author Rik <octave@nomad.inbox5.com>
date Sun, 16 May 2010 22:26:54 -0700
parents 4b421123fd17
children 65b240770880
line wrap: on
line diff
--- a/scripts/plot/private/__errplot__.m
+++ b/scripts/plot/private/__errplot__.m
@@ -87,7 +87,7 @@
           xldata = [];
           xudata = [];
         else
-          error ("2 column errorplot is only valid or xerr or yerr");
+          error ("errorbar: 2 column errorplot is only valid or xerr or yerr");
         endif
       case 3
         if (strcmp (ifmt, "boxxy") || strcmp (ifmt, "xyerr"))
@@ -144,10 +144,10 @@
           ldata = varargin{5}(:,i);
           udata = varargin{6}(:,i);
         else
-          error ("error plot with 6 columns only valid for boxxy and xyerr");
+          error ("errorbar: error plot with 6 columns only valid for boxxy and xyerr");
         endif        
       otherwise
-        error ("error plot requires 2, 3, 4 or 6 arguments.");
+        error ("errorbar: error plot requires 2, 3, 4 or 6 arguments.");
     endswitch
 
     addproperty ("xdata", hg, "data", xdata(:))
@@ -258,7 +258,7 @@
     ydata = [y1; y2];
     return
   else
-      error ("valid error bar types are xerr, yerr, boxxy, and xyerr.")
+      error ("errorbar: valid error bar types are xerr, yerr, boxxy, and xyerr.")
   endif
   xdata = xdata.'(:);
   ydata = ydata.'(:);