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

Commitd2e68ff

Browse files
authored
Merge pull request#10622 from stonebig/patch-1
make seaborn great again on Matplotlib-2.2
2 parents6bb5994 +09a17f4 commitd2e68ff

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎lib/matplotlib/axes/_subplots.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,10 @@ def _make_twin_axes(self, *kl, **kwargs):
173173
"""
174174
frommatplotlib.projectionsimportprocess_projection_requirements
175175
if'sharex'inkwargsand'sharey'inkwargs:
176-
raiseValueError("Twinned Axes may share only one axis.")
176+
# The following line is added in v2.2 to avoid breaking Seaborn,
177+
# which currently uses this internal API.
178+
ifkwargs["sharex"]isnotselfandkwargs["sharey"]isnotself:
179+
raiseValueError("Twinned Axes may share only one axis.")
177180
kl= (self.get_subplotspec(),)+kl
178181
projection_class,kwargs,key=process_projection_requirements(
179182
self.figure,*kl,**kwargs)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp