()
| 142 | |
| 143 | @image_comparison(['date_axhspan.png'], style='mpl20') |
| 144 | def test_date_axhspan(): |
| 145 | # test axhspan with date inputs |
| 146 | t0 = datetime.datetime(2009, 1, 20) |
| 147 | tf = datetime.datetime(2009, 1, 21) |
| 148 | fig, ax = plt.subplots() |
| 149 | ax.axhspan(t0, tf, facecolor="blue", alpha=0.25) |
| 150 | ax.set_ylim(t0 - datetime.timedelta(days=5), |
| 151 | tf + datetime.timedelta(days=5)) |
| 152 | fig.subplots_adjust(left=0.25) |
| 153 | |
| 154 | |
| 155 | @image_comparison(['date_axvspan.png'], style='mpl20') |
nothing calls this directly
no test coverage detected
searching dependent graphs…