MCPcopy
hub / github.com/matplotlib/matplotlib / test_spines_black_axes

Function test_spines_black_axes

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

Source from the content-addressed store, hash-verified

146
147@image_comparison(['black_axes.png'], style='_classic_test')
148def test_spines_black_axes():
149 # GitHub #18804
150 plt.rcParams["savefig.pad_inches"] = 0
151 plt.rcParams["savefig.bbox"] = 'tight'
152 fig = plt.figure(0, figsize=(4, 4))
153 ax = fig.add_axes((0, 0, 1, 1))
154 ax.set_xticklabels([])
155 ax.set_yticklabels([])
156 ax.set_xticks([])
157 ax.set_yticks([])
158 ax.set_facecolor((0, 0, 0))
159
160
161def test_arc_spine_inner_no_axis():

Callers

nothing calls this directly

Calls 5

figureMethod · 0.80
add_axesMethod · 0.80
set_xticksMethod · 0.80
set_yticksMethod · 0.80
set_facecolorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…