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

Appearance settings

Commit e767003

Browse filesBrowse files
authored
make seaborn great again on Matplotlib-2.2
fix for #10585
1 parent f9b67a4 commit e767003
Copy full SHA for e767003

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/axes/_subplots.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_subplots.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ def _make_twin_axes(self, *kl, **kwargs):
172172
Make a twinx axes of self. This is used for twinx and twiny.
173173
"""
174174
from matplotlib.projections import process_projection_requirements
175-
if 'sharex' in kwargs and 'sharey' in kwargs:
176-
raise ValueError("Twinned Axes may share only one axis.")
175+
if kwargs["sharex"] is not self and kwargs["sharey"] is not self:
176+
raise ValueError("Twinned Axes may share only one axis.")
177177
kl = (self.get_subplotspec(),) + kl
178178
projection_class, kwargs, key = process_projection_requirements(
179179
self.figure, *kl, **kwargs)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.