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

Function test_logscale_mask

lib/matplotlib/tests/test_scale.py:150–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

148
149@image_comparison(['logscale_mask.png'], remove_text=True, style='_classic_test')
150def test_logscale_mask():
151 # Check that zero values are masked correctly on log scales.
152 # See github issue 8045
153 xs = np.linspace(0, 50, 1001)
154
155 fig, ax = plt.subplots()
156 ax.plot(np.exp(-xs**2))
157 fig.canvas.draw()
158 ax.set(yscale="log",
159 yticks=10.**np.arange(-300, 0, 24)) # Backcompat tick selection.
160
161
162def test_extra_kwargs_raise():

Callers

nothing calls this directly

Calls 4

subplotsMethod · 0.45
plotMethod · 0.45
drawMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…