Permalink
Browse files

Add FIXME comment.

  • Loading branch information...
maxalbert committed Jan 9, 2013
1 parent 48b296a commit 49ee4e8c7b8dfaf38fcb539e45fadb4b8620d123
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/matplotlib/legend.py
View
@@ -937,6 +937,13 @@ def _find_best_position(self, width, height, renderer, consider=None):
badness = legendBox.count_contains(verts)
badness += legendBox.count_overlaps(bboxes)
for line in lines:
+ # FIXME: the following line is ill-suited for lines
+ # that 'spiral' around the center, because the bbox
+ # may intersect with the legend even if the line
+ # itself doesn't. One solution would be to break up
+ # the line into its straight-segment components, but
+ # this may (or may not) result in a significant
+ # slowdown if lines with many vertices are present.
if line.intersects_bbox(legendBox):
badness += 1

0 comments on commit 49ee4e8

Please sign in to comment.