Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed as not planned
Description
I was wondering if you had considered a legend option that labels each line near to the line, e.g. fromhere.
I was imagining that this could be similar to the current API of:
ax.plot(xdata, ydata, label="Oil")ax.legend(loc="near_line") # or something
Automatically deciding where to place the legends might be tricky - mentioned by theTufte in R package. So there would probably also need to be a way to manually specify locations for tricky cases.
I know that this can be done manually withannotate
(this is what I am currently doing, usually just shifted wrt the first/last point of the data) and there is some sample code to somewhat automate it e.g.1,2.
Have I missed a native way to do this? If not, is it something that matplotlib would be interested in?