python - How can I draw inline line labels in matplotlib? -


i have following graph, consisting of several lines:

sample line plot

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:

sample contour plot

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

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

python - Scapy Dot11ReassoReq -