Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab3a9f commit 6316914Copy full SHA for 6316914
1 file changed
lib/matplotlib/axes/_base.py
@@ -4649,10 +4649,8 @@ def _update_twinned_axes_patch_visibility(self):
4649
Only the bottom-most Axes in the group (lowest zorder, breaking ties by
4650
creation/insertion order) has a visible background patch.
4651
"""
4652
- if self not in self._twinned_axes:
4653
- return
4654
twinned = list(self._twinned_axes.get_siblings(self))
4655
- if not twinned:
+ if len(twinned) < 2: # no twins
4656
return
4657
fig = self.get_figure(root=False)
4658
fig_axes = fig.axes if fig is not None else []
0 commit comments