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

Function test_markevery

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

Source from the content-addressed store, hash-verified

1875
1876@image_comparison(['markevery.png'], remove_text=True, style='mpl20')
1877def test_markevery():
1878 x = np.linspace(0, 10, 100)
1879 y = np.sin(x) * np.sqrt(x/10 + 0.5)
1880
1881 # check marker only plot
1882 fig, ax = plt.subplots()
1883 ax.plot(x, y, 'o', label='default')
1884 ax.plot(x, y+1, 'd', markevery=None, label='mark all')
1885 ax.plot(x, y+2, 's', markevery=10, label='mark every 10')
1886 ax.plot(x, y+3, '+', markevery=(5, 20), label='mark every 20 starting at 5')
1887 ax.legend()
1888
1889
1890@image_comparison(['markevery_line.png'], remove_text=True, style='mpl20')

Callers

nothing calls this directly

Calls 4

sqrtMethod · 0.80
subplotsMethod · 0.45
plotMethod · 0.45
legendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…