【发布时间】:2015-01-26 15:59:42
【问题描述】:
我想使用 pandas 数据框(称为 df)在图形上创建多个子图。
我原来的情节在这里:
df.plot(x='month', y='number', title='open by month',color="blue")
我在本网站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")
【问题讨论】:
标签: python matplotlib pandas subplot