Python 3.x 为什么plt.axis(';equal';)不能与seaborn.pairplot一起工作?
我正在用Python 3.x 为什么plt.axis(';equal';)不能与seaborn.pairplot一起工作?,python-3.x,matplotlib,seaborn,Python 3.x,Matplotlib,Seaborn,我正在用 import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn.preprocessing import StandardScaler %config InlineBackend.figure_format = 'svg' df = pd.read_csv("https://raw.githubusercontent.com/leanhdung1994/Deep
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.preprocessing import StandardScaler
%config InlineBackend.figure_format = 'svg'
df = pd.read_csv("https://raw.githubusercontent.com/leanhdung1994/Deep-Learning/main/decathlon.txt", sep='\t')
df1 = df.copy()
df1.iloc[:, 0:10] = StandardScaler().fit_transform(df.iloc[:, 0:10])
df2 = df1.iloc[:, 0:10]
sns.pairplot(df2)
plt.axis('equal')
请您解释一下为什么plt.axis('equal')
会导致错误RuntimeError:adjustable='datalim'在两个轴共享时是不允许的