🌐 AI搜索 & 代理 主页
Skip to content

Commit 827cd62

Browse files
committed
PEP8 new tests
1 parent 327fec9 commit 827cd62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/tests/test_axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2775,7 +2775,8 @@ def test_hist_stacked_normed():
27752775
ax = fig.add_subplot(111)
27762776
ax.hist((d1, d2), stacked=True, normed=True)
27772777

2778-
@image_comparison(baseline_images=['hist_stacked_normed'])
2778+
2779+
@image_comparison(baseline_images=['hist_stacked_normed'], extensions=['png'])
27792780
def test_hist_stacked_density():
27802781
# make some data
27812782
d1 = np.linspace(1, 3, 20)
@@ -2786,12 +2787,12 @@ def test_hist_stacked_density():
27862787

27872788

27882789
def test_hist_normed_density():
2789-
#Normed and density should not be used simultaneously
2790+
# Normed and density should not be used simultaneously
27902791
d1 = np.linspace(1, 3, 20)
27912792
d2 = np.linspace(0, 10, 50)
27922793
fig = plt.figure()
27932794
ax = fig.add_subplot(111)
2794-
#test that kwargs normed and density cannot be set both.
2795+
# test that kwargs normed and density cannot be set both.
27952796
with pytest.raises(Exception):
27962797
ax.hist((d1, d2), stacked=True, normed=True, density=True)
27972798

@@ -2805,7 +2806,6 @@ def test_hist_normed_density():
28052806
ax.hist((d1, d2), stacked=True, normed=True, density=False)
28062807

28072808

2808-
28092809
def test_hist_stacked_density():
28102810
# make some data
28112811
d1 = np.linspace(1, 3, 20)

0 commit comments

Comments
 (0)