Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb419198

Browse files
committed
FIX: add legend kwarg outside
1 parentb767add commitb419198

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎lib/matplotlib/figure.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1772,6 +1772,9 @@ def legend(self, *args, outside=False, axs=None, **kwargs):
17721772
cbook._warn_external('legend outside=True method needs '
17731773
'constrained_layout=True. Setting False')
17741774
outside=False
1775+
ifoutsideandkwargs.get('bbox_to_anchor')isnotNone:
1776+
cbook._warn_external('legend outside=True ignores bbox_to_anchor '
1777+
'kwarg')
17751778

17761779
ifnotoutside:
17771780
l=mlegend.Legend(self,handles,labels,*extra_args,**kwargs)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp