Skip to content

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?

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

2 participants