matplotlib - 3D scatter plot

import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D #3D图表需要使用“mpl_toolkits”模块 #①构造数据 np.random.seed(42) #随机数种子 n_samples = 500 # 采样个数为500 dim = 3 #生成一组3维正态
相关文章
相关标签/搜索