散点图
from matplotlib import pyplot as plt x = [1, 2, 3] y = [3, 4, 5] plt.scatter(x, y) plt.show()
meshgrid生成点阵图
最后更新于4年前
from matplotlib import pyplot as plt x = [1, 2, 3] y = [3, 4, 5] xxx, yyy = np.meshgrid(x, y) plt.scatter(xxx, yyy) plt.show()