我希望在一个图上使用 pandas 数据框(名为 df)创建多个子图。
这是我的原始绘图:
"I've tried multiple attempts at the 'working with figures and subplots' section of this site pyplot tutorial from matplotlib."
"[ 1 ]"
[ 2 ]
这是我的原始绘图:
df.plot(x='month', y='number', title='open by month',color="blue")
"I've tried multiple attempts at the 'working with figures and subplots' section of this site pyplot tutorial from matplotlib."
"[ 1 ]"
plt.figure(1)
df.plot.(figure(1), sublot(211), x='month', y='number', title='open byXXX"
df.plot.(figure(1), sublot(212), x='month', y='number', title='open byXXX"
[ 2 ]
plt.figure(1)
df.plot.subplot(211)(x='month', y='number', title='open byXXX")
df.plot.subplot(212)(x='month', y='number', title='open byXXX")