8000 Fixed indentation · matplotlib/matplotlib@e249ac3 · GitHub
[go: up one dir, main page]

Skip to content

Commit e249ac3

Browse files
committed
Fixed indentation
1 parent 92df340 commit e249ac3

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/matplotlib/tests/test_figure.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,20 @@ def test_fignum_exists():
5353

5454
@cleanup
5555
def test_clf_keyword():
56-
# test if existing figure is cleared with figure() and subplots()
57-
fig0 = plt.figure(num=1)
58-
fig0.suptitle("A fancy plot")
59-
assert_equal([t.get_text() for t in fig0.texts], ["A fancy plot"])
60-
61-
fig1 = plt.figure(num=1, clear=False)
62-
fig1.text(0.5, 0.5, "Really fancy!")
63-
assert_true(fig0 is fig1)
64-
assert_equal([t.get_text() for t in fig1.texts],
65-
["A fancy plot", 'Really fancy!'])
66-
67-
fig2, ax2 = plt.subplots(2, 1, num=1, clear=True)
68-
assert_true(fig0 is fig2)
69-
assert_equal([t.get_text() for t in fig2.texts], [])
56+
# test if existing figure is cleared with figure() and subplots()
57+
fig0 = plt.figure(num=1)
58+
fig0.suptitle("A fancy plot")
59+
assert_equal([t.get_text() for t in fig0.texts], ["A fancy plot"])
60+
61+
fig1 = plt.figure(num=1, clear=False)
62+
fig1.text(0.5, 0.5, "Really fancy!")
63+
assert_true(fig0 is fig1)
64+
assert_equal([t.get_text() for t in fig1.texts],
65+
["A fancy plot", 'Really fancy!'])
66+
67+
fig2, ax2 = plt.subplots(2, 1, num=1, clear=True)
68+
assert_true(fig0 is fig2)
69+
assert_equal([t.get_text() for t in fig2.texts], [])
7070

7171

7272
@image_comparison(baseline_images=['figure_today'])

0 commit comments

Comments
 (0)
0