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

Function test_symlog2

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

Source from the content-addressed store, hash-verified

1394
1395@image_comparison(['symlog2.pdf'], remove_text=True, style='_classic_test')
1396def test_symlog2():
1397 # Numbers from -50 to 50, with 0.1 as step
1398 x = np.arange(-50, 50, 0.001)
1399
1400 fig, axs = plt.subplots(5, 1)
1401 for ax, linthresh in zip(axs, [20., 2., 1., 0.1, 0.01]):
1402 ax.plot(x, x)
1403 ax.set_xscale('symlog', linthresh=linthresh)
1404 ax.grid(True)
1405 axs[-1].set_ylim(-0.1, 0.1)
1406
1407
1408def test_pcolorargs_5205():

Callers

nothing calls this directly

Calls 5

set_xscaleMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
gridMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…