Skip to content

Commit d1ad5d2

Browse files
committed
STY: pep8 fixes to test_legend.py
1 parent 4ee1b31 commit d1ad5d2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/matplotlib/tests/test_legend.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,21 +80,21 @@ def test_framealpha():
8080
plt.legend(framealpha=0.5)
8181

8282

83-
@image_comparison(baseline_images=['scatter_rc3','scatter_rc1'], remove_text=True)
83+
@image_comparison(baseline_images=['scatter_rc3', 'scatter_rc1'], remove_text=True)
8484
def test_rc():
8585
# using subplot triggers some offsetbox functionality untested elsewhere
8686
fig = plt.figure()
87-
ax = plt.subplot(121)
87+
ax = plt.subplot(121)
8888
ax.scatter(list(xrange(10)), list(xrange(10, 0, -1)), label='three')
8989
ax.legend(loc="center left", bbox_to_anchor=[1.0, 0.5],
90-
title="My legend")
90+
title="My legend")
9191

9292
mpl.rcParams['legend.scatterpoints'] = 1
9393
fig = plt.figure()
94-
ax = plt.subplot(121)
94+
ax = plt.subplot(121)
9595
ax.scatter(list(xrange(10)), list(xrange(10, 0, -1)), label='one')
9696
ax.legend(loc="center left", bbox_to_anchor=[1.0, 0.5],
97-
title="My legend")
97+
title="My legend")
9898

9999

100100
@image_comparison(baseline_images=['legend_expand'], remove_text=True)
@@ -167,8 +167,8 @@ def __call__(self, legend, orig_handle, fontsize, handlebox):
167167
handler_map={None: AnyObjectHandler()})
168168

169169
warn.assert_called_with(u'Legend handers must now implement a '
170-
'"legend_artist" method rather than '
171-
'being a callable.',
170+
'"legend_artist" method rather than '
171+
'being a callable.',
172172
MatplotlibDeprecationWarning,
173173
stacklevel=1)
174174

0 commit comments

Comments
 (0)