I am trying to create a stacked bar chart in Python to try and match the stacked bar chart produced by Excel but I can't seem to get it to match the output of Excel. The Python chart is not showing me values in the A array.excel chart python chart
import matplotlib.pyplot as plt
def graph2Peak(self):
A = [-1478, -16411, 5986, 0]
B = [14933, 29866, 7466, 14933]
X = range(4)
plt2 = plt
plt.bar(X, A, color = 'b')
plt.bar(X, B, color = 'r', bottom = A)
plt.show()