I'm trying to make a bar plot with matplotlib
- I want the bars to be unstacked.
- I want my x-axis to be a date axis. in order to treat him with DayLocator, DateFormatter, etc.
When I'm trying to change the X-axis to dated and customize him - it disappears
index=pd.Series(df[df['Container'] == 1]['Date start']).count()
index = int(index)
height = np.arange(index)
fig, ax = plt.subplots(1,1, figsize=(15,8))
fig.suptitle('ICP: Time standing', fontsize=25, fontweight='bold')
ax.bar(height,df[df['Container'] == 1]['Aluminum (Al)\nppb'],width = 0.1)
ax.bar(height+0.1,df[df['Container'] == 1]['Barium (Ba)\nppb'],width = 0.1)
#dates = pd.date_range(start='29/6/2019', end='01/08/2019')
#myFmtx = DateFormatter("%d/%m")
#ax.xaxis.set_major_locator(mdates.DayLocator(interval=2))
#ax.xaxis.set_major_formatter(myFmtx)
fig.autofmt_xdate()
Output Graph