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

Method test_step

lib/matplotlib/tests/test_datetime.py:757–764  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

755
756 @mpl.style.context("default")
757 def test_step(self):
758 mpl.rcParams["date.converter"] = "concise"
759 N = 6
760 fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout='constrained')
761 x = np.array([datetime.datetime(2023, 9, n) for n in range(1, N)])
762 ax1.step(x, range(1, N))
763 ax2.step(range(1, N), x)
764 ax3.step(x, x)
765
766 @pytest.mark.xfail(reason="Test for streamplot not written yet")
767 @mpl.style.context("default")

Callers

nothing calls this directly

Calls 2

stepMethod · 0.80
subplotsMethod · 0.45

Tested by

no test coverage detected