FUNCTION REFERENCE
barh
Horizontal bar plot.
Horizontal bar plot.
Syntax
b = barh(y)Syntax
b = barh(x, y)Syntax
b = barh(..., width)Syntax
b = barh(..., 'grouped')Syntax
b = barh(..., 'stacked')Syntax
b = barh(..., Name, Value)Draws one horizontal bar per element of y at the positions x (default 1:n). A matrix y gives one bar series per column, grouped side by side or stacked. Options: BarWidth (default 0.8), BaseValue, BarLayout, FaceColor, EdgeColor, LineWidth and DisplayName. get answers XData, YData, BarWidth, BaseValue, BarLayout and Horizontal.
Example
b = barh([3 5 2]); get(b, 'Horizontal') % 'on'Example
barh([1 2; 3 4], 'stacked');Differences from MATLAB: at most 2500 groups and 32 series. No baseline object.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.