MATLAB: How to show positive bar segments in a stacked graph on the positive side of the y-axis instead of the negative side

barcolumngraphMATLABnegativeplotpositivesignstackstacked

I have a stacked bar with one negative quantity represented by the negative blue bar. However, the last orange bar is positive and I would like to display it in the positive side of the y axis (on top of the negative blue bar rather than below). Thanks!
names = categorical({'Baseline', 'L1: Lighting','L1: Setpoints','L2: LEDs','L2: Leakage','L2: ERV','L3: PV'});
names = reordercats(names,{'Baseline', 'L1: Lighting','L1: Setpoints','L2: LEDs','L2: Leakage','L2: ERV','L3: PV'});
pv = 200.8477;
A = [25.69 64.91; 24.94 65.25; 26.58 37.23; 23.45 65.72; 23.08 47.65; 26.5 51.59; (25.69-pv) 64.91];
bar(names,A, 'stacked')
I am actually trying to get something like this, done in excel:
Capture.JPG

Best Answer

Hey man, try plotting it using this barExtended function.
I dont know why the normal stacked bar function would not do it.