散点图
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()

Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
散点图
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()
