| 987 | |
| 988 | @image_comparison(['axhspan_epoch.png'], style='mpl20') |
| 989 | def test_axhspan_epoch(): |
| 990 | import matplotlib.testing.jpl_units as units |
| 991 | units.register() |
| 992 | |
| 993 | # generate some data |
| 994 | t0 = units.Epoch("ET", dt=datetime.datetime(2009, 1, 21)) |
| 995 | tf = units.Epoch("ET", dt=datetime.datetime(2009, 1, 22)) |
| 996 | dt = units.Duration("ET", units.day.convert("sec")) |
| 997 | |
| 998 | ax = plt.gca() |
| 999 | ax.axhspan(t0, tf, facecolor="blue", alpha=0.25) |
| 1000 | ax.set_ylim(t0 - 5.0*dt, tf + 5.0*dt) |
| 1001 | |
| 1002 | |
| 1003 | @image_comparison(['hexbin_extent.png', 'hexbin_extent.png'], remove_text=True, |