散点图
散点图
from matplotlib import pyplot as plt
x = [1, 2, 3]
y = [3, 4, 5]
plt.scatter(x, y)
plt.show()
meshgrid生成点阵图

最后更新于
这有帮助吗?
这有帮助吗?
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()