Skip to content

Commit 49ee4e8

Browse files
committed
Add FIXME comment.
1 parent 48b296a commit 49ee4e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/matplotlib/legend.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,13 @@ def _find_best_position(self, width, height, renderer, consider=None):
937937
badness = legendBox.count_contains(verts)
938938
badness += legendBox.count_overlaps(bboxes)
939939
for line in lines:
940+
# FIXME: the following line is ill-suited for lines
941+
# that 'spiral' around the center, because the bbox
942+
# may intersect with the legend even if the line
943+
# itself doesn't. One solution would be to break up
944+
# the line into its straight-segment components, but
945+
# this may (or may not) result in a significant
946+
# slowdown if lines with many vertices are present.
940947
if line.intersects_bbox(legendBox):
941948
badness += 1
942949

0 commit comments

Comments
 (0)