-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
Conversation
lib/matplotlib/tests/test_axes.py
Outdated
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]) |
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.
I'm not sure if this is the best way to check that the errorbars aren't see-through, so other suggestions welcome.
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.
This color should be 'C0'
? I would test against that.
lib/matplotlib/tests/test_axes.py
Outdated
@@ -2454,6 +2454,17 @@ def test_errorbar_limits(): | |||
ax.set_title('Errorbar upper and lower limits') | |||
|
|||
|
|||
def test_errobar_nonefmt(): |
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.
still need @cleanup
on 2.0.x.
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.
Thanks @dstansby ! This looks good.
Anyone wants to give another look at this PR? |
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.
LGTM too :).
Might be worth to re-run AppVeyor (which does not seem to have been run) before merging? |
Appveyor does not run on the 2.0.x branch |
Ah, this might be the explanation then 😄! |
Fixes #8117.