python - How can I draw inline line labels in matplotlib? -
i have following graph, consisting of several lines:

now, label lines in plot. however, using legend() crams labels in box, makes plot difficult interpret. i'd to instead use inline labels. ideal output use labels following matplotlib contour plot, text labels lines instead of numbers:

i haven't been able find out how in matplotlib documentation. there way achieve this? if not, other software use generate type of plot?
may suggest solution problem. since in case legend overlaps charts might want move legend outside of plot.
method move legend outside of plot described here: moving matplotlib legend outside of axis makes cutoff figure box
Comments
Post a Comment