Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 504f619

Browse files
committed
update to new way of warning after rebase
1 parent 6bce43f commit 504f619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@ def _find_best_position(self, width, height, renderer, consider=None):
11171117
verts, bboxes, lines, offsets = self._auto_legend_data()
11181118
if self._loc_used_default and verts.shape[0] > 200000:
11191119
# this size results in a 3+ second render time on a good machine
1120-
warnings.warn(
1120+
cbook._warn_external(
11211121
'Creating legend with loc="best" can be slow with large'
11221122
' amounts of data.'
11231123
)

0 commit comments

Comments
 (0)