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 bf39791 commit f55957eCopy full SHA for f55957e
lib/matplotlib/tests/test_datetime.py
@@ -264,7 +264,7 @@ def test_errorbar(self):
264
def test_eventplot(self):
265
mpl.rcParams["date.converter"] = "concise"
266
267
- fig, (ax1, ax2) = plt.subplots(2, 1, layout="constrained")
+ fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout="constrained")
268
269
x_dates1 = np.array([datetime.datetime(2020, 6, 30),
270
datetime.datetime(2020, 7, 22),
@@ -294,6 +294,17 @@ def test_eventplot(self):
294
lineoffsets=lineoffsets1,
295
linelengths=linelengths1)
296
297
+ lineoffsets2 = np.array([
298
+ datetime.datetime(2020, 7, 1),
299
+ datetime.datetime(2020, 7, 15),
300
+ datetime.datetime(2020, 8, 1)
301
+ ], dtype=np.datetime64)
302
+
303
+ ax3.eventplot([dates1, dates2, dates3],
304
+ colors=colors1,
305
+ lineoffsets=lineoffsets2,
306
+ linelengths=linelengths1)
307
308
@pytest.mark.xfail(reason="Test for fill not written yet")
309
@mpl.style.context("default")
310
def test_fill(self):
0 commit comments