X Tutup
Skip to content
Merged
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
4 changes: 2 additions & 2 deletions lib/matplotlib/tests/test_figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ def test_clf_keyword():

fig1 = plt.figure(num=1, clear=False)
fig1.text(0.5, 0.5, "Really fancy!")
assert_true(fig0 is fig1)
assert fig0 is fig1
assert_equal([t.get_text() for t in fig1.texts],
["A fancy plot", 'Really fancy!'])

fig2, ax2 = plt.subplots(2, 1, num=1, clear=True)
assert_true(fig0 is fig2)
assert fig0 is fig2
assert_equal([t.get_text() for t in fig2.texts], [])


Expand Down
X Tutup