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

Function test_log_transform_with_zero

lib/matplotlib/tests/test_path.py:213–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

211
212@image_comparison(['semi_log_with_zero.png'], style='mpl20')
213def test_log_transform_with_zero():
214 x = np.arange(-10, 10)
215 y = (1.0 - 1.0/(x**2+1))**20
216
217 fig, ax = plt.subplots()
218 ax.semilogy(x, y, "-o", lw=15, markeredgecolor='k')
219 ax.set_ylim(1e-7, 1)
220 ax.grid(True)
221
222
223def test_make_compound_path_empty():

Callers

nothing calls this directly

Calls 4

semilogyMethod · 0.80
subplotsMethod · 0.45
set_ylimMethod · 0.45
gridMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…