Keyboard shortcuts

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()

meshgrid用法