Permalink
Browse files

Add TODO note about marker extents and vertex overlaps.

  • Loading branch information...
1 parent 9f17739 commit 612f3d233de8b290ff72dc7c25abb5f7c5f1f713 @maxalbert committed Jan 6, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/matplotlib/legend.py
View
@@ -928,6 +928,9 @@ def _find_best_position(self, width, height, renderer, consider=None):
for l, b in consider:
legendBox = Bbox.from_bounds(l, b, width, height)
badness = 0
+ # XXX TODO: If markers are present, it would be good to
+ # take their into account when checking vertex overlaps in
+ # the next line.
badness = legendBox.count_contains(verts)
badness += legendBox.count_overlaps(bboxes)
for line in lines:

0 comments on commit 612f3d2

Please sign in to comment.