I have the following matrix in MATLAB:
a = [1 2; 1 -1];
Plotting a bar graph of this data with either the BAR or BARH function as follows gives a counterintuitive result:
bar(a,'stack')barh(a,'stack')
In the resulting plot, the negative value is drawn over the positive value, so on the plot it looks like there is only one value in the second row. I expect the negative values to be displayed on the negative side of the axis.
Best Answer