From f8fcc5870def32e6ed910870e4eb90d4b91a2232 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Fri, 7 May 2021 00:07:48 +0200 Subject: [PATCH] Fix broken test re: polar tick visibility. --- lib/matplotlib/tests/test_polar.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/tests/test_polar.py b/lib/matplotlib/tests/test_polar.py index b6fc7ffb8778..a09358463975 100644 --- a/lib/matplotlib/tests/test_polar.py +++ b/lib/matplotlib/tests/test_polar.py @@ -397,7 +397,8 @@ def test_remove_shared_polar(fig_ref, fig_test): def test_shared_polar_keeps_ticklabels(): - _, axs = plt.subplots( + fig, axs = plt.subplots( 2, 2, subplot_kw=dict(projection="polar"), sharex=True, sharey=True) - assert axs[0, 1].xaxis._major_tick_kw["label1On"] - assert axs[0, 1].yaxis._major_tick_kw["label1On"] + fig.canvas.draw() + assert axs[0, 1].xaxis.majorTicks[0].get_visible() + assert axs[0, 1].yaxis.majorTicks[0].get_visible()