Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions lib/matplotlib/tests/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,15 @@ def test_imshow(self):
fig, ax = plt.subplots()
ax.imshow(...)

@pytest.mark.xfail(reason="Test for loglog not written yet")
@mpl.style.context("default")
def test_loglog(self):
fig, ax = plt.subplots()
ax.loglog(...)
mpl.rcParams["date.converter"] = 'concise'
fig, (ax1, ax2, ax3) = plt.subplots(3, 1, layout='constrained')
x = np.arange(np.datetime64('1980-12-01'), np.datetime64('2023-12-06'))
y = 10 ** np.linspace(0, 4, len(x))
ax1.loglog(x, y)
ax2.loglog(y, x)
ax3.loglog(x, x)

@pytest.mark.xfail(reason="Test for matshow not written yet")
@mpl.style.context("default")
Expand Down