📜  在图例中找不到带有标签的句柄 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:43.497000             🧑  作者: Mango

代码示例1
import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0, 20, 2000)
y1 = np.sin(x)
y2 = np.arcsin(x)
plt.plot(x, y1)
plt.plot(x, y2)
plt.legend()
plt.show()