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 8fa89d6 commit a2a2809Copy full SHA for a2a2809
lib/matplotlib/tests/test_datetime.py
@@ -542,11 +542,16 @@ def test_loglog(self):
542
fig, ax = plt.subplots()
543
ax.loglog(...)
544
545
- @pytest.mark.xfail(reason="Test for matshow not written yet")
546
@mpl.style.context("default")
547
def test_matshow(self):
+ a = np.diag(range(5))
548
+ dt_start = datetime.datetime(1980, 4, 15)
549
+ dt_end = datetime.datetime(2020, 11, 11)
550
+ extent = (dt_start, dt_end, dt_start, dt_end)
551
- ax.matshow(...)
552
+ ax.matshow(a, extent=extent)
553
+ for label in ax.get_xticklabels():
554
+ label.set_rotation(90)
555
556
@pytest.mark.xfail(reason="Test for pcolor not written yet")
557
0 commit comments