Skip to content

Commit 564d4fd

Browse files
authored
Merge pull request #20177 from anntzer/kxytlp2
Fix broken test re: polar tick visibility.
2 parents f359c48 + f8fcc58 commit 564d4fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/tests/test_polar.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ def test_remove_shared_polar(fig_ref, fig_test):
397397

398398

399399
def test_shared_polar_keeps_ticklabels():
400-
_, axs = plt.subplots(
400+
fig, axs = plt.subplots(
401401
2, 2, subplot_kw=dict(projection="polar"), sharex=True, sharey=True)
402-
assert axs[0, 1].xaxis._major_tick_kw["label1On"]
403-
assert axs[0, 1].yaxis._major_tick_kw["label1On"]
402+
fig.canvas.draw()
403+
assert axs[0, 1].xaxis.majorTicks[0].get_visible()
404+
assert axs[0, 1].yaxis.majorTicks[0].get_visible()

0 commit comments

Comments
 (0)