import warningswarnings.filterwarnings('ignore')3 绘制散点矩阵图scatterplotmatrixscatterplotmatrix( X,...# 透明度)返回值是fig_axes:(fig, axes)的元组;fig对象+axes对象,fig,axes=plt.subplots(...)3.1 基础散点矩阵图In 2:import matplotlib.pyplot...as pltfrom mlxtend.data import iris_datafrom mlxtend.plotting import scatterplotmatrix # 散点矩阵图X, y..., 2, 2, 2, 2, 2, 2, 2])In 3:scatterplotmatrix(X, figsize=(10, 8))plt.tight_layout()plt.show()3.2 多分类散点矩阵图...基于numpy数组的散点直方图In 6:X,y = iris_data()X[:3] # numpy数组形式Out6:array([[5.1, 3.5, 1.4, 0.2], [4.9,