I want to combine these two charts from a DataFrame: two charts into one so that they are stacked on top of each other.
The only thing I obtain with this code:
plt.style.use('ggplot')
fig, ax = plt.subplots(sharey=True)
hw = hotwater_qa_1day.plot(kind='bar',stacked=True,width=1,colormap='autumn',figsize=(20,5),ax=ax)
ht = heatdemand_qa_1day.plot(kind='bar',stacked=True,width=1,colormap='winter',figsize=(20,5),ax=ax)
plt.ylabel('Heatdemand and Hotwater')
plt.xlabel('Time')
plt.title('Title')
plt.show()
is the chart where one part of data hides the other. Like here: faulty chart
How to solve it? I want them to be on one plot. Not on two subplots.