MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_axvspan_epoch

Function test_axvspan_epoch

lib/matplotlib/tests/test_axes.py:974–985  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

972
973@image_comparison(['axvspan_epoch.png'], style='mpl20')
974def test_axvspan_epoch():
975 import matplotlib.testing.jpl_units as units
976 units.register()
977
978 # generate some data
979 t0 = units.Epoch("ET", dt=datetime.datetime(2009, 1, 21))
980 tf = units.Epoch("ET", dt=datetime.datetime(2009, 1, 22))
981 dt = units.Duration("ET", units.day.convert("sec"))
982
983 ax = plt.gca()
984 ax.axvspan(t0, tf, facecolor="blue", alpha=0.25)
985 ax.set_xlim(t0 - 5.0*dt, tf + 5.0*dt)
986
987
988@image_comparison(['axhspan_epoch.png'], style='mpl20')

Callers

nothing calls this directly

Calls 5

gcaMethod · 0.80
axvspanMethod · 0.80
registerMethod · 0.45
convertMethod · 0.45
set_xlimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…