我想数据绘制在matplotlib的数字,相应的轴和新的工作来了,回想起与轴上的附加剧情的人物形象对象时抑制seaborn输出:如何回顾与regplot
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
x=np.arange(0,20)
y=2*x
fig,ax=plt.subplots()
ax.scatter(x,x)
ax.scatter(x,y)
fig
的正常工作与matplotlib,如果我使用,无论seaborn的regplot:
fig2,ax2=plt.subplots()
sns.regplot(x,x,ax=ax2,fit_reg=False)
sns.regplot(x,y,ax=ax2,fit_reg=False)
fig2
fig2产生,我想这个数字,但regplot命令生成一个空的身影。有没有办法抑制regplot的空输出或让它显示更新的ax2而不回想fig2?
感谢Goyo,就像你说的不是解决方案,而是一个很好的解决方法,谢谢! –