-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Error when using quantities when plotting errorbars #8871
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
Comments
This will be fixed by a combination of astropy/astropy#7037 and #10206 |
Closing as fixed; this now works with Matplotlib >= 2.2, and Astropy 2.0.6 or Astropy 3.1 (not yet released) |
Hi astropy v4.1
Output
|
I have the same error as above, running matplotlib 3.3.4 and astropy 4.2.1. |
Please try latest matplotlib. If this is still an issue please open a new issue. Thanks! |
This works fine with 3.4.2 and astropy 4.3.dev, so I don't think there is anything to do here. |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug summary
I am plotting something that requires the use of standard error. I would like to keep all my arrays as Quantities arrays (using astropy quantities in this case). However, when giving yerr an array with dimensions, an exception is thrown.
Code for reproduction
Actual outcome

Expected outcome
It is expected that errorbar would plot the points with errorbars using quantity arrays the same as regular arrays. When yerr is taken out, the quantities plot fine. Simply using yerr_meter.value does not work, as this throws an exception related to subtracting two different quantities (y_meter and yerr). I would rather not have to call .value on all the arguments.
This appears to be related to an issue raised in astropy:
astropy/astropy#3914
Matplotlib version
The text was updated successfully, but these errors were encountered: