Skip to content

Commit

Permalink
Try to make code in test_check_equal compatible with matplotlib 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
weiji14 committed Sep 4, 2020
1 parent 5d0586b commit 50aa147
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_pytest_mpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,11 @@ def test_succeeds(self):
@pytest.mark.mpl_image_compare
def test_check_equal():
fig_test = plt.figure()
fig_test.subplots().plot([1, 3, 5])
ax_test = fig_test.add_subplot()
ax_test.plot([1, 3, 5])

fig_ref = plt.figure()
fig_ref.subplots().plot([0, 1, 2], [1, 3, 5])
ax_ref = fig_ref.add_subplot()
ax_ref.plot([0, 1, 2], [1, 3, 5])

return fig_test, fig_ref

0 comments on commit 50aa147

Please sign in to comment.