The simplest legend can be created with the plt.legend() command, ... x = np.linspace(0, 10, 1000) fig, ax = plt.subplots() ax.plot(x, np.sin(x), '-b', ...
確定! 回上一頁