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

Function test_axisbelow

lib/matplotlib/tests/test_axes.py:7868–7884  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7866
7867@image_comparison(['axisbelow.png'], remove_text=True, style='_classic_test')
7868def test_axisbelow():
7869 # Test 'line' setting added in 6287.
7870 # Show only grids, not frame or ticks, to make this test
7871 # independent of future change to drawing order of those elements.
7872 axs = plt.figure().subplots(ncols=3, sharex=True, sharey=True)
7873 settings = (False, 'line', True)
7874
7875 for ax, setting in zip(axs, settings):
7876 ax.plot((0, 10), (0, 10), lw=10, color='m')
7877 circ = mpatches.Circle((3, 3), color='r')
7878 ax.add_patch(circ)
7879 ax.grid(color='c', linestyle='-', linewidth=3)
7880 ax.tick_params(top=False, bottom=False,
7881 left=False, right=False)
7882 ax.spines[:].set_visible(False)
7883 ax.set_axisbelow(setting)
7884 assert ax.get_axisbelow() == setting
7885
7886
7887def test_titletwiny():

Callers

nothing calls this directly

Calls 9

figureMethod · 0.80
add_patchMethod · 0.80
set_axisbelowMethod · 0.80
get_axisbelowMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
gridMethod · 0.45
tick_paramsMethod · 0.45
set_visibleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…