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

Skip to content

Commit 466330b

Browse files
authored
document the reason for the change
1 parent a736720 commit 466330b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/axes/_subplots.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ def _make_twin_axes(self, *kl, **kwargs):
173173
"""
174174
from matplotlib.projections import process_projection_requirements
175175
if 'sharex' in kwargs and 'sharey' in kwargs:
176+
# The following line is added in v2.2 to avoid breaking Seaborn,
177+
# which currently uses this internal API.
176178
if kwargs["sharex"] is not self and kwargs["sharey"] is not self:
177179
raise ValueError("Twinned Axes may share only one axis.")
178180
kl = (self.get_subplotspec(),) + kl

0 commit comments

Comments
 (0)