Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to insert non overlapping text in matplotlib?

I am trying to insert power flow results in a network plot created with matplotlib. Some buses are so close that labelling the names along with power flow results is proving to be a big headache because text overlap is making some portions unreadable.

Is there some way to use the bounding box of the text to determine whether the text overlaps the plot lines and/or some other text?

This is a repost of a request posted in stack overflow.