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

Function test_spines_data_positions

lib/matplotlib/tests/test_spines.py:76–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74
75@image_comparison(['spines_data_positions.png'], style='mpl20')
76def test_spines_data_positions():
77 fig, ax = plt.subplots()
78 ax.spines.left.set_position(('data', -1.5))
79 ax.spines.top.set_position(('data', 0.5))
80 ax.spines.right.set_position(('data', -0.5))
81 ax.spines.bottom.set_position('zero')
82 ax.set_xlim([-2, 2])
83 ax.set_ylim([-2, 2])
84 ax.xaxis.set_ticks_position('both')
85 ax.yaxis.set_ticks_position('both')
86
87
88@check_figures_equal()

Callers

nothing calls this directly

Calls 5

subplotsMethod · 0.45
set_positionMethod · 0.45
set_xlimMethod · 0.45
set_ylimMethod · 0.45
set_ticks_positionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…