【发布时间】:2019-02-11 05:33:02
【问题描述】:
您好,我正在尝试将两个地块与 plt 并排放置,并在此处尝试了建议:Trying to position subplots next to each other
但是我正在使用 pandas 的默认功能进行绘图
myDataFrame.plot(kind='scatter' x='xcol', y='ycol')
所以我不能像myDataFrame.subplot(2,1,2)那样做plt.subplot(2, 1, 2)(显然)
做事
plt.subplot(1, 2, 1)
myDataFrame.plot(kind='scatter' x='xcol', y='ycol')
plt.subplot(1, 2, 2)
myDataFrame.plot(kind='scatter' x='xcol', y='ycol')
只需在我想要的情节之前添加两个情节
任何想法我如何仍然可以使用 myDataframe.plot(kind='scatter') 并将其中两个并排放置
【问题讨论】:
标签: python pandas dataframe matplotlib