我已经搜索了一段时间,但找不到一个好的答案。
如何在绘图上指定标签框的位置,使其不会遮挡线条?
例如:我制作的这个情节中的标签框挡住了线条
def savePlt(tCoords, yCoords, perturbedYCoords1, perturbedYCoords2):
plt.plot(tCoords, yCoords, 'co', label="(t, y*)")
plt.plot(tCoords, perturbedYCoords1, 'yo', label="(t, y1)")
plt.plot(tCoords, perturbedYCoords2, 'ko', label="(t, y2)")
plt.legend()
plt.hold(False)
plt.savefig("cheezberger")
return