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 a736720

Browse filesBrowse files
authored
test like before, but allowing seaborn exception
1 parent 2c37e60 commit a736720
Copy full SHA for a736720

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+3
-2
lines changed

‎lib/matplotlib/axes/_subplots.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_subplots.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,9 @@ 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 kwargs["sharex"] is not self and kwargs["sharey"] is not self:
176-
raise ValueError("Twinned Axes may share only one axis.")
175+
if 'sharex' in kwargs and 'sharey' in kwargs:
176+
if kwargs["sharex"] is not self and kwargs["sharey"] is not self:
177+
raise ValueError("Twinned Axes may share only one axis.")
177178
kl = (self.get_subplotspec(),) + kl
178179
projection_class, kwargs, key = process_projection_requirements(
179180
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.