MCPcopy Create free account
hub / github.com/matplotlib/matplotlib / test_ticks

Function test_ticks

lib/mpl_toolkits/axisartist/tests/test_axis_artist.py:16–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15@image_comparison(['axis_artist_ticks.png'], style='default')
16def test_ticks():
17 fig, ax = plt.subplots()
18
19 ax.xaxis.set_visible(False)
20 ax.yaxis.set_visible(False)
21
22 locs_angles = [((i / 10, 0.0), i * 30) for i in range(-1, 12)]
23
24 ticks_in = Ticks(ticksize=10, axis=ax.xaxis)
25 ticks_in.set_locs_angles(locs_angles)
26 ax.add_artist(ticks_in)
27
28 ticks_out = Ticks(ticksize=10, tick_direction="out", color='C3', axis=ax.xaxis)
29 ticks_out.set_locs_angles(locs_angles)
30 ax.add_artist(ticks_out)
31
32
33@image_comparison(['axis_artist_labelbase.png'], style='default')

Callers

nothing calls this directly

Calls 5

set_locs_anglesMethod · 0.95
TicksClass · 0.90
subplotsMethod · 0.45
set_visibleMethod · 0.45
add_artistMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…