12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ar, barhbar(...,'style') specifies the style of the bars. 'style' is 'group' or'stack'. 'group' is the default mode of display.• 'group' displays n groups of m vertical bars, where n is the number of rowsand m is the number of columns in Y. The group contains one bar per columnin Y.• 'stack' displays one bar for each row in Y. The bar height is the sum of theelements in the row. Each bar is multi-colored, with colors corresponding todistinct elements and showing the relative contribution each row elementmakes to the total sum.bar(...,LineSpec) displays all bars using the color specified by LineSpec.[xb,yb] = bar(...) returns vectors that you plot using plot(xb,yb) orpatch(xb,yb,C). This gives you greater control over the appearance of a graph,for example, to incorporate a bar chart into a more elaborate plot statement.h = bar(...) returns a vector of handles to patch graphics objects. barcreates one patch graphics object per column in Y.barh(...), [xb,yb] = barh(...), and h = barh(...) create horizontalbars. Y determines the bar length. The vector x is a monotonic vector definingthe y-axis intervals for horizontal bars.2-42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!