Skip to content

FIX: fix second error line drawing codepath #5401

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
Nov 4, 2015

Conversation

tacaswell
Copy link
Member

Now that plot knows how to dig into pandas Series to extract
a label, make sure all internal calls to plot in errorbar pass
label='_nolegend_'.

Closes #5393

This is a minimal fix without tests, errorbar needs some more general attention.

Now that `plot` knows how to dig into pandas Series to extract
a label, make sure all internal calls to `plot` in `errorbar` pass
`label='_nolegend_'`.

Closes matplotlib#5393
@tacaswell tacaswell added this to the Next bugfix release (1.5.1) milestone Nov 4, 2015
@WeatherGod
Copy link
Member

You need to pop off the label from kwargs first in order to prevent duplicate kwarg entries.

@tacaswell
Copy link
Member Author

That is done way at the top, see https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/axes/_axes.py#L2789

The two major over-hauls that need to happen in errorbar are a) use z-order to specify above/below so we only have one code path there b) promote containers to full artists so that the Line2D objects don't end up in the lines attribute and effectively in the legend (but not draw!) search path twice.

@WeatherGod
Copy link
Member

Ah, ok. This makes sense to me as a good stop-gap solution.

WeatherGod added a commit that referenced this pull request Nov 4, 2015
FIX: fix second error line drawing codepath
@WeatherGod WeatherGod merged commit e6c6c00 into matplotlib:v1.5.x Nov 4, 2015
@tacaswell tacaswell deleted the fix_errorlabel branch November 4, 2015 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants