()
| 154 | |
| 155 | @image_comparison(['date_axvspan.png'], style='mpl20') |
| 156 | def test_date_axvspan(): |
| 157 | # test axvspan with date inputs |
| 158 | t0 = datetime.datetime(2000, 1, 20) |
| 159 | tf = datetime.datetime(2010, 1, 21) |
| 160 | fig, ax = plt.subplots() |
| 161 | ax.axvspan(t0, tf, facecolor="blue", alpha=0.25) |
| 162 | ax.set_xlim(t0 - datetime.timedelta(days=720), |
| 163 | tf + datetime.timedelta(days=720)) |
| 164 | fig.autofmt_xdate() |
| 165 | |
| 166 | |
| 167 | @image_comparison(['date_axhline.png'], style='mpl20') |
nothing calls this directly
no test coverage detected
searching dependent graphs…