changeset 22332:1d85005fc6b7

Fix minor issues revealed from dump_plots. * errorbar.m: Remove extra newline in code. * ezplot3.m: Add information on "animate" option to docstring. * fill.m: In demo #3, explicitly expand column vector of cdata to a matrix to make Matlab happy.
author Rik <rik@octave.org>
date Wed, 17 Aug 2016 10:30:50 -0700
parents b81b08cc4c83
children 2758af148ced
files scripts/plot/draw/errorbar.m scripts/plot/draw/ezplot3.m scripts/plot/draw/fill.m
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/errorbar.m	Wed Aug 17 11:43:27 2016 -0400
+++ b/scripts/plot/draw/errorbar.m	Wed Aug 17 10:30:50 2016 -0700
@@ -216,7 +216,6 @@
 %! legend ("Y errbar", "X errbar");
 %! title ("errorbar() with 2 datasets");
 
-
 %!demo
 %! clf;
 %! x = 0:0.5:2*pi;
--- a/scripts/plot/draw/ezplot3.m	Wed Aug 17 11:43:27 2016 -0400
+++ b/scripts/plot/draw/ezplot3.m	Wed Aug 17 10:30:50 2016 -0700
@@ -20,6 +20,7 @@
 ## @deftypefn  {} {} ezplot3 (@var{fx}, @var{fy}, @var{fz})
 ## @deftypefnx {} {} ezplot3 (@dots{}, @var{dom})
 ## @deftypefnx {} {} ezplot3 (@dots{}, @var{n})
+## @deftypefnx {} {} ezplot3 (@dots{}, "animate")
 ## @deftypefnx {} {} ezplot3 (@var{hax}, @dots{})
 ## @deftypefnx {} {@var{h} =} ezplot3 (@dots{})
 ##
@@ -36,6 +37,9 @@
 ## @var{n} is a scalar defining the number of points to use in plotting the
 ## function.
 ##
+## If the @qcode{"animate"} option is given then the plotting is animated
+## in the style of @code{comet3}.
+##
 ## If the first argument @var{hax} is an axes handle, then plot into this axis,
 ## rather than the current axes returned by @code{gca}.
 ##
@@ -50,7 +54,7 @@
 ## @end group
 ## @end example
 ##
-## @seealso{plot3, ezplot, ezmesh, ezsurf}
+## @seealso{plot3, comet3, ezplot, ezmesh, ezsurf}
 ## @end deftypefn
 
 function h = ezplot3 (varargin)
--- a/scripts/plot/draw/fill.m	Wed Aug 17 11:43:27 2016 -0400
+++ b/scripts/plot/draw/fill.m	Wed Aug 17 10:30:50 2016 -0700
@@ -197,6 +197,6 @@
 %!      1 0.5
 %!      1 0.5];
 %! c = [1 2 3 4]';
-%! fill (x, y, c);
+%! fill (x, y, [c c]);
 %! title ({"fill() function"; 'cdata = column vector produces FaceColor = "interp"'});