You can change the size of a bar chart in MATLAB as follows:
main.m347 chars13 lines
In the above code, b.BarWidth
controls the width of the bars. A value of 1 makes the bars span the entire x-axis range, while a value smaller than 1 will make the bars thinner than the default. b.BaseValue
sets the base value for the bars, and b.FaceColor
controls the color of the bars. The b.CData
property changes the color of individual bars, where the row index selects the bar to be changed and the 3-element column vector sets the RGB color values.
gistlibby LogSnag