Mercurial > hg > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
17518:6c62150b454a | 17519:cc9befe5d271 |
---|---|
34 ## The default width is 0.8. | 34 ## The default width is 0.8. |
35 ## | 35 ## |
36 ## If @var{y} is a matrix, then each column of @var{y} is taken to be a | 36 ## If @var{y} is a matrix, then each column of @var{y} is taken to be a |
37 ## separate bar graph plotted on the same graph. By default the columns | 37 ## separate bar graph plotted on the same graph. By default the columns |
38 ## are plotted side-by-side. This behavior can be changed by the @var{style} | 38 ## are plotted side-by-side. This behavior can be changed by the @var{style} |
39 ## argument, which can take the values @qcode{"grouped"} (the default), | 39 ## argument which can take the following values: |
40 ## or @qcode{"stacked"}. | 40 ## |
41 ## @table @asis | |
42 ## @item @qcode{"grouped"} (default) | |
43 ## Side-by-side bars with a gap between bars and centered over the Y-coordinate. | |
44 ## | |
45 ## @item @qcode{"stacked"} | |
46 ## Bars are stacked so that each Y value has a single bar composed of | |
47 ## multiple segments. | |
48 ## | |
49 ## @item @qcode{"hist"} | |
50 ## Side-by-side bars with no gap between bars and centered over the | |
51 ## Y-coordinate. | |
52 ## | |
53 ## @item @qcode{"histc"} | |
54 ## Side-by-side bars with no gap between bars and left-aligned to the | |
55 ## Y-coordinate. | |
56 ## @end table | |
41 ## | 57 ## |
42 ## Optional property/value pairs are passed directly to the underlying patch | 58 ## Optional property/value pairs are passed directly to the underlying patch |
43 ## objects. | 59 ## objects. |
44 ## | 60 ## |
45 ## If the first argument @var{hax} is an axes handle, then plot into this axis, | 61 ## If the first argument @var{hax} is an axes handle, then plot into this axis, |