【发布时间】:2015-09-23 01:50:36
【问题描述】:
由于某种原因,我无法让它工作。我最终得到的是两个网格,它们的轴相互重叠,然后第二个绘制在下面。我的代码适用于 seaborn distplot:
plt.subplot(121)
h = sns.distplot(dfmain["Runs"])
plt.subplot(122)
j = sns.distplot(dfHighScores["Runs"])
但如果我尝试并排绘制两个因子图(它们是独立的,所以我不想共享轴),那么这就像上面描述的那样不起作用:
plt.subplot(121)
h = sns.factorplot("Runs",data=dfmain)
plt.subplot(122)
j = sns.factorplot("Runs",data=dfHighScores)
无论我使用 iPython notebook 还是 spyder 作为我的 IDE,我都会得到这种行为。任何帮助将不胜感激。
【问题讨论】:
标签: python-2.7 matplotlib seaborn