Mercurial > hg > octave-nkf
diff scripts/plot/barh.m @ 17519:cc9befe5d271
Overhaul bar family of plot functions.
* scripts/plot/bar.m, scripts/plot/barh.m: Document new "hist", "histc"
arguments.
* scripts/plot/private/__bar__.m: "grouped" bars now default to having
a gap between them for Matlab compatibility. Added new style options
"hist", "histc". Renamed variable names for clarity. Removed unnecessary
for loops in listener functions. Stop recursion in listener functions.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 30 Sep 2013 16:50:41 -0700 |
parents | bc924baa2c4e |
children |
line wrap: on
line diff
--- a/scripts/plot/barh.m +++ b/scripts/plot/barh.m @@ -36,8 +36,24 @@ ## If @var{y} is a matrix, then each column of @var{y} is taken to be a ## separate bar graph plotted on the same graph. By default the columns ## are plotted side-by-side. This behavior can be changed by the @var{style} -## argument, which can take the values @qcode{"grouped"} (the default), -## or @qcode{"stacked"}. +## argument which can take the following values: +## +## @table @asis +## @item @qcode{"grouped"} (default) +## Side-by-side bars with a gap between bars and centered over the Y-coordinate. +## +## @item @qcode{"stacked"} +## Bars are stacked so that each Y value has a single bar composed of +## multiple segments. +## +## @item @qcode{"hist"} +## Side-by-side bars with no gap between bars and centered over the +## Y-coordinate. +## +## @item @qcode{"histc"} +## Side-by-side bars with no gap between bars and left-aligned to the +## Y-coordinate. +## @end table ## ## Optional property/value pairs are passed directly to the underlying patch ## objects.