Skip to content

Commit

Permalink
Add FIXME comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
maxalbert committed Jan 9, 2013
1 parent 48b296a commit 49ee4e8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/matplotlib/legend.py
Expand Up @@ -937,6 +937,13 @@ def _find_best_position(self, width, height, renderer, consider=None):
badness = legendBox.count_contains(verts) badness = legendBox.count_contains(verts)
badness += legendBox.count_overlaps(bboxes) badness += legendBox.count_overlaps(bboxes)
for line in lines: 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): if line.intersects_bbox(legendBox):
badness += 1 badness += 1


Expand Down

0 comments on commit 49ee4e8

Please sign in to comment.