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

Skip to content

If Legend shadow=True set framealpha=1 if not passed explicitly instead of consulting rcParams #8988

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 6 commits into from
Aug 11, 2017
Merged
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
Next Next commit
Fixed pep8 violations in test case
  • Loading branch information
s0vereign committed Aug 4, 2017
commit 538da8738e1c995e23373632410f22ab5abb0eb2
5 changes: 3 additions & 2 deletions lib/matplotlib/tests/test_legend.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,9 @@ def test_handler_numpoints():


def test_shadow_framealpha():
'''Test if framealpha is activated when shadow is True and framealpha is not explicitly passed'''
# Test if framealpha is activated when shadow is True
# and framealpha is not explicitly passed'''
fig, ax = plt.subplots()
ax.plot(range(100),label="test")
ax.plot(range(100), label="test")
leg = ax.legend(shadow=True, facecolor='w')
assert leg.framealpha == 1