8000 Add framealpha argument for legend by piti118 · Pull Request #1626 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Add framealpha argument for legend #1626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 17, 2013
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
7DAA
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
0