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

Function test_axhspan_epoch

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

Source from the content-addressed store, hash-verified

987
988@image_comparison(['axhspan_epoch.png'], style='mpl20')
989def 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,

Callers

nothing calls this directly

Calls 5

gcaMethod · 0.80
axhspanMethod · 0.80
registerMethod · 0.45
convertMethod · 0.45
set_ylimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…