matplotlib - How can I print two boxplots on the same axis in python? -


i'm using matplotlib graph 2 boxplots. able them printed subplots on same figure, having trouble getting them side side on same set of axes.

here's code worked:

fig, axes = plt.subplots(nrows=1, ncols=2) axes[0].boxplot(mads_dp52) axes[1].boxplot(mads_dp53) plt.show() 

Comments