()
| 178 | |
| 179 | @image_comparison(['date_axvline.png'], style='mpl20') |
| 180 | def test_date_axvline(): |
| 181 | # test axvline with date inputs |
| 182 | t0 = datetime.datetime(2000, 1, 20) |
| 183 | tf = datetime.datetime(2000, 1, 21) |
| 184 | fig, ax = plt.subplots() |
| 185 | ax.axvline(t0, color="red", lw=3) |
| 186 | ax.set_xlim(t0 - datetime.timedelta(days=5), |
| 187 | tf + datetime.timedelta(days=5)) |
| 188 | fig.autofmt_xdate() |
| 189 | |
| 190 | |
| 191 | def test_too_many_date_ticks(caplog): |
nothing calls this directly
no test coverage detected
searching dependent graphs…