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

Skip to content

Commit 499db29

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

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/matplotlib/axes/_base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4731,9 +4731,8 @@ def _update_twinned_axes_patch_visibility(self):
47314731
)
47324732
bottom = twinned[0]
47334733
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())
4734+
if ax.patch is not None:
4735+
ax.patch.set_visible((ax is bottom) and ax.get_frame_on())
47374736

47384737
def _make_twin_axes(self, *args, delta_zorder=0.0, **kwargs):
47394738
"""Make a twinx Axes of self. This is used for twinx and twiny."""

0 commit comments

Comments
 (0)