-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
update errorbar in Matplotlib 2.0.0 #8586
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
Milestone
Comments
This is due to a change in the default behavior of errorbarr (https://matplotlib.org/users/dflt_style_changes.html#errorbar) where we no longer draw the caps by default. This results in |
Thanks!! Reverting to the matplotlib 1.5 behaviour with mpl.rcParams['errorbar.capsize'] = 3 works fine.
Apologies in advance for the trivial question, but, if one does not do that and, thus, err[1] is empty, where are the errors stored?
|
The third artist (the vertical lines) have the errors. Closed by #8588 |
Very last question. How does one access the third artist (the vertical lines) in a convenient way?Sometinh like err[2][0].get_segments() works, but is a bit cumbersome. In other words, what is the equivalent of
ln, (err_top, err_bot), (bars, ) = err
in matplotlib 2.0 if one does not set plt.rcParams['errorbar.capsize'] = 3?
|
ln, _, (bars,) = err should work or ln, *_, (bars, ) = err in python3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to update matplotlib errorbar plotting as some input data varies. The code at:
#4556
doesn't seem to work with matplotlib 2.0.0 (works fine with version 1.5.2rc2). Hints? Thanks!!
Code for reproduction
For example:
Actual outcome
returns the following erro:
It used to work on 1.5.2rc2 and python 2.7.12.
Matplotlib version
Both python and matplotlib installed from MacPorts.
The text was updated successfully, but these errors were encountered: