慕桂英3389331
您可以设置ax.tick_params()和调整子图间距。import matplotlib.pyplot as pltimport seaborn as snspenguins = sns.load_dataset("penguins")pp = sns.pairplot( penguins, x_vars=["bill_length_mm", "bill_depth_mm", "flipper_length_mm"], y_vars=["bill_length_mm", "bill_depth_mm"],)for ax in pp.axes.flat: ax.tick_params(axis='both', labelleft=True, labelbottom=True) plt.subplots_adjust(wspace=0.3, hspace=0.3)plt.show()