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

Skip to content

Commit 6316914

Browse files
sanrishitimhoffm
andauthored
Update lib/matplotlib/axes/_base.py
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent 1ab3a9f commit 6316914

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4649,10 +4649,8 @@ def _update_twinned_axes_patch_visibility(self):
46494649
Only the bottom-most Axes in the group (lowest zorder, breaking ties by
46504650
creation/insertion order) has a visible background patch.
46514651
"""
4652-
if self not in self._twinned_axes:
4653-
return
46544652
twinned = list(self._twinned_axes.get_siblings(self))
4655-
if not twinned:
4653+
if len(twinned) < 2: # no twins
46564654
return
46574655
fig = self.get_figure(root=False)
46584656
fig_axes = fig.axes if fig is not None else []

0 commit comments

Comments
 (0)