I want to plot two subplot in in one plot using matplotlib
my code is as following:
fig, axes = plt.subplots(ncols=2)
df5.plot(ax=axes[0], kind='bar' ,stacked=True)
ax[0,0].set_title("metagenome data")
plt.xticks(r1, names1)
plt.xlabel("Sample")
plt.legend(loc='upper left', bbox_to_anchor=(1,1), ncol=1)
df_b5.plot(ax=axes[1], kind='bar', stacked=True)
ax[0,1].set_title("Amplicon data")
plt.xticks(r2, names2)
plt.xlabel("Sample")
plt.legend(loc='upper left', bbox_to_anchor=(1,1), ncol=1)
and only the first one is at the plot what am I doing wrong?
any help will be grate! TNX!