Mercurial > octave
changeset 32883:8b17f4ebc13f stable
plot.m: Document the expected output of scalar/vector inputs (bug #60588)
* scripts/plot/draw/plot.m: Add note to plot docstring describing that the
output from a scalar x and vector y, and vice versa, plots a series of
individual points.
author | Nicholas R. Jankowski <jankowski.nicholas@gmail.com> |
---|---|
date | Mon, 29 Jan 2024 21:18:35 -0500 |
parents | ca64468e9710 |
children | 9034521f154f |
files | scripts/plot/draw/plot.m |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/plot.m Mon Jan 29 20:42:41 2024 -0500 +++ b/scripts/plot/draw/plot.m Mon Jan 29 21:18:35 2024 -0500 @@ -82,6 +82,11 @@ ## but no more than two singleton dimensions. ## ## @item +## If either @var{x} or @var{y} is a scalar and the other is a vector, a +## series of points are plotted at the coordinates defined by the scalar and +## each element of the vector. +## +## @item ## If both arguments are vectors, the elements of @var{y} are plotted versus ## the elements of @var{x}. ##