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

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
fix PEP8
  • Loading branch information
piti118 committed Jan 17, 2013
commit e92ddea93ef474ef4a46b57b5d5e5b116e7530f3
2 changes: 1 addition & 1 deletion lib/matplotlib/legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def __init__(self, parent, handles, labels,
shadow=None,
title=None, # set a title for the legend

framealpha=None, #set frame alpha
framealpha=None, # set frame alpha

bbox_to_anchor=None, # bbox that the legend will be anchored.
bbox_transform=None, # transform for the bbox
Expand Down
4 changes: 2 additions & 2 deletions lib/matplotlib/tests/test_legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def test_fancy():

@image_comparison(baseline_images=['framealpha'], remove_text=True)
def test_framealpha():
x = np.linspace(1,100,100)
x = np.linspace(1, 100, 100)
y = x
plt.plot(x,y, label='mylabel', lw=10)
plt.plot(x, y, label='mylabel', lw=10)
plt.legend(framealpha=0.5)

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