Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e92ddea

Browse files
committed
fix PEP8
1 parent 398e7b5 commit e92ddea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def __init__(self, parent, handles, labels,
168168
shadow=None,
169169
title=None, # set a title for the legend
170170

171-
framealpha=None, #set frame alpha
171+
framealpha=None, # set frame alpha
172172

173173
bbox_to_anchor=None, # bbox that the legend will be anchored.
174174
bbox_transform=None, # transform for the bbox

lib/matplotlib/tests/test_legend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ def test_fancy():
4949

5050
@image_comparison(baseline_images=['framealpha'], remove_text=True)
5151
def test_framealpha():
52-
x = np.linspace(1,100,100)
52+
x = np.linspace(1, 100, 100)
5353
y = x
54-
plt.plot(x,y, label='mylabel', lw=10)
54+
plt.plot(x, y, label='mylabel', lw=10)
5555
plt.legend(framealpha=0.5)
5656

5757
@image_comparison(baseline_images=['scatter_rc3','scatter_rc1'], remove_text=True)

0 commit comments

Comments
 (0)