From: Rodrigo Estrella on
Hi.
I would like to stack 144 histograms behind each other. I tried with bar3 but the last parameter just defines the width of the bars. Thanks
From: Walter Roberson on
Rodrigo Estrella wrote:
> Hi. I would like to stack 144 histograms behind each other. I tried with
> bar3 but the last parameter just defines the width of the bars. Thanks

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/barseriesproperties.html

BaseValue

double: y-axis value

Value where baseline is drawn. You can specify the value along the
y-axis (vertical bars) or x-axis (horizontal bars) at which the MATLAB
software draws the baseline.



Note: the Y values passed to a bar*() call should be thought of not as
values to be automatically scaled to bring the bar chart to a "nice"
size, but instead as axes-relative Y coordinates for the upper edge of
the bar; the bar will be drawn from the BaseValue (default 0) to the
upper edge. You can thus stack bars by determining the Y coordinate you
wish for the lower edge of the second bar and adding that offset to each
Y of the data and setting the BaseValue property to be that offset.