Skip to content

BUG: Area plot legend has incorrect color #8027

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 1 commit into from
Aug 15, 2014

Conversation

sinhrks
Copy link
Member

@sinhrks sinhrks commented Aug 14, 2014

Derived from #7636. Area plot sets incorrect alpha values to legend when stacked=True.

NG: Each areas are drawn with alpha=1.0, but legend has alpha=0.5

figure_ng

After fix

df = pd.DataFrame(np.random.rand(20, 5), columns=['A', 'B', 'C', 'D', 'E'])
df.plot(kind='area')

figure_1

# When alpha is specified
df.plot(kind='area', alpha=0.2)

figure_2

@jreback
Copy link
Contributor

jreback commented Aug 15, 2014

this is a partial close of #7636?

@@ -472,7 +472,7 @@ Bug Fixes
times were returned when crossing DST boundaries (:issue:`7835`, :issue:`7901`).



- Bug in area plot draws legend with incorrect ``alpha`` when ``stacked=True`` (:issue:`8027`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the right issue number?

@sinhrks
Copy link
Member Author

sinhrks commented Aug 15, 2014

No. This is separate from original issue described in #7636 (actually #7636 is ambiguous for me), but the one which @szeitlin is pointed in #7636.

Thus I put this issue's no in the release note.

@jreback jreback added this to the 0.15.0 milestone Aug 15, 2014
@jreback jreback added the Bug label Aug 15, 2014
jreback added a commit that referenced this pull request Aug 15, 2014
BUG: Area plot legend has incorrect color
@jreback jreback merged commit 76e6588 into pandas-dev:master Aug 15, 2014
@sinhrks sinhrks deleted the area_legend branch August 15, 2014 12:56
@jreback jreback modified the milestones: 0.15.1, 0.15.0 Oct 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants