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 df68eb4 commit 499db29Copy full SHA for 499db29
1 file changed
lib/matplotlib/axes/_base.py
@@ -4731,9 +4731,8 @@ def _update_twinned_axes_patch_visibility(self):
4731
)
4732
bottom = twinned[0]
4733
for ax in twinned:
4734
- patch = getattr(ax, "patch", None)
4735
- if patch is not None:
4736
- patch.set_visible((ax is bottom) and ax.get_frame_on())
+ if ax.patch is not None:
+ ax.patch.set_visible((ax is bottom) and ax.get_frame_on())
4737
4738
def _make_twin_axes(self, *args, delta_zorder=0.0, **kwargs):
4739
"""Make a twinx Axes of self. This is used for twinx and twiny."""
0 commit comments