| 1889 | |
| 1890 | @image_comparison(['markevery_line.png'], remove_text=True, style='mpl20') |
| 1891 | def test_markevery_line(): |
| 1892 | x = np.linspace(0, 10, 100) |
| 1893 | y = np.sin(x) * np.sqrt(x/10 + 0.5) |
| 1894 | |
| 1895 | # check line/marker combos |
| 1896 | fig, ax = plt.subplots() |
| 1897 | ax.plot(x, y, '-o', label='default') |
| 1898 | ax.plot(x, y+1, '-d', markevery=None, label='mark all') |
| 1899 | ax.plot(x, y+2, '-s', markevery=10, label='mark every 10') |
| 1900 | ax.plot(x, y+3, '-+', markevery=(5, 20), label='mark every 20 starting at 5') |
| 1901 | ax.legend() |
| 1902 | |
| 1903 | |
| 1904 | @image_comparison(['markevery_linear_scales.png'], remove_text=True, |