We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b617bf5 commit 1d1171fCopy full SHA for 1d1171f
lib/matplotlib/tests/test_datetime.py
@@ -325,11 +325,15 @@ def test_spy(self):
325
fig, ax = plt.subplots()
326
ax.spy(...)
327
328
- @pytest.mark.xfail(reason="Test for stackplot not written yet")
329
@mpl.style.context("default")
330
def test_stackplot(self):
331
- fig, ax = plt.subplots()
332
- ax.stackplot(...)
+ mpl.rcParams["date.converter"] = 'concise'
+ N = 10
+ stacked_nums = np.tile(np.arange(1, N), (4, 1))
333
+ dates = np.array([datetime.datetime(2020 + i, 1, 1) for i in range(N - 1)])
334
+
335
+ fig, ax = plt.subplots(layout='constrained')
336
+ ax.stackplot(dates, stacked_nums)
337
338
@pytest.mark.xfail(reason="Test for stairs not written yet")
339
0 commit comments