MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / check_tick1_visible

Function check_tick1_visible

lib/matplotlib/tests/test_subplots.py:46–57  ·  view source on GitHub ↗

Check that the x and y tick visibility is as specified. Note: This only checks the tick1line, i.e. bottom / left ticks.

(axs, x_visible, y_visible)

Source from the content-addressed store, hash-verified

44
45
46def check_tick1_visible(axs, x_visible, y_visible):
47 """
48 Check that the x and y tick visibility is as specified.
49
50 Note: This only checks the tick1line, i.e. bottom / left ticks.
51 """
52 for ax, visible, in zip(axs, x_visible):
53 for tick in ax.xaxis.get_major_ticks():
54 assert tick.tick1line.get_visible() == visible
55 for ax, y_visible, in zip(axs, y_visible):
56 for tick in ax.yaxis.get_major_ticks():
57 assert tick.tick1line.get_visible() == visible
58
59
60def test_shared():

Callers 1

test_label_outerFunction · 0.85

Calls 2

get_major_ticksMethod · 0.45
get_visibleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…