-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Conversation
Travis failure looks like a dud. This seems like a simple enough wrapper around Anybody else want to give a +1 or other feedback? Edit: Barring minor style issues below. |
def test_framealpha(): | ||
x = np.linspace(1,100,100) | ||
y = x | ||
plt.plot(x,y, label='mylabel', lw=10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a space after the first comma? Like so: plt.plot(x, y, label='mylabel', lw=10)
.
Seems fine -- perhaps it's a needless proliferation of keyword arguments -- OTOH, I can see why this is a common thing someone would want to do. @pelson: do you want to ring in on this? |
Both ways to get transparency doesn't work well with shadow though since shadow option assume full opacity of the legend frame. |
Hmmm... should we fix shadow while we're at it, then? |
No complaints from me. |
I think the shadow issue is probably fine for now... I agree -- it's not clear what it should do instead. @piti118: can you please rebase this on master so we can hit that big green merge button? |
That does look funny to me, but I can understand why some might not think |
Rebased.. I think I did it right. |
Yep. Looks good. Merging. |
Add framealpha argument for legend
Hmmm... I think I didn't write the change log... |
Oh, thanks. I should have noticed it before merging. I should be able to merge that manually. No worries. |
just pull #1677 |
Straight from matplotlib recipe. I think frame alpha belongs to keyword argument like
rather than