您可以先声明
fig, ax对
plt.subplots(),然后在该图上设置适当的大小,然后要求
sns.regplot在该图上进行绘制
ax
import numpy as npimport seaborn as snsimport matplotlib.pyplot as plt# some artificial datadata = np.random.multivariate_normal([0,0], [[1,-0.5],[-0.5,1]], size=100)# plotsns.set_style('ticks')fig, ax = plt.subplots()fig.set_size_inches(18.5, 10.5)sns.regplot(data[:,0], data[:,1], ax=ax)sns.despine()


