Skip to content

Plot errorbars when fmt == 'none' #8163

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 4 commits into from
Mar 11, 2017

Conversation

dstansby
Copy link
Member

Fixes #8117.

plotline, _, barlines = plt.errorbar(x, y, xerr=1, yerr=1, fmt='none')
assert plotline is None
for errbar in barlines:
assert np.any(errbar.get_color() != [0, 0, 0, 0])
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure if this is the best way to check that the errorbars aren't see-through, so other suggestions welcome.

Copy link
Member

Choose a reason for hiding this comment

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

This color should be 'C0'? I would test against that.

@dstansby dstansby added this to the 2.0.1 (next bug fix release) milestone Feb 27, 2017
@tacaswell tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Feb 27, 2017
@@ -2454,6 +2454,17 @@ def test_errorbar_limits():
ax.set_title('Errorbar upper and lower limits')


def test_errobar_nonefmt():
Copy link
Member

Choose a reason for hiding this comment

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

still need @cleanup on 2.0.x.

Copy link
Member

@NelleV NelleV left a comment

Choose a reason for hiding this comment

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

Thanks @dstansby ! This looks good.

@NelleV NelleV changed the title Plot errorbars when fmt == 'none' [MRG+1] Plot errorbars when fmt == 'none' Mar 8, 2017
@NelleV
Copy link
Member

NelleV commented Mar 11, 2017

Anyone wants to give another look at this PR?

Copy link
Contributor

@afvincent afvincent left a comment

Choose a reason for hiding this comment

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

LGTM too :).

@afvincent afvincent changed the title [MRG+1] Plot errorbars when fmt == 'none' [MRG+2] Plot errorbars when fmt == 'none' Mar 11, 2017
@afvincent
Copy link
Contributor

Might be worth to re-run AppVeyor (which does not seem to have been run) before merging?

@tacaswell
Copy link
Member

Appveyor does not run on the 2.0.x branch

@afvincent
Copy link
Contributor

Ah, this might be the explanation then 😄!

@tacaswell tacaswell merged commit b6f17f3 into matplotlib:v2.0.x Mar 11, 2017
@QuLogic QuLogic changed the title [MRG+2] Plot errorbars when fmt == 'none' Plot errorbars when fmt == 'none' Mar 11, 2017
@dstansby dstansby deleted the errbar-none-fmt branch March 12, 2017 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants