-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: Strange errorbar caps when polar axes have non-default theta direction or theta zero location #28885
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
It seems errorbar caps currently do not account for a changed orientation due to The fix (add appropriate sign and offset) should likely be around here: matplotlib/lib/matplotlib/axes/_axes.py Lines 3771 to 3779 in 78198fb
This is a good first issue, because the fix is straight forward and easy to verify. |
Good first issue - notes for new contributorsThis issue is suited to new contributors because it does not require understanding of the We do not assign issues. Check the Development section in the sidebar for linked pull If something is unclear, please reach out on any of our communication |
I’d love to give this issue a try and work on the fix! |
@johnsonhsiung Got for it! Tipp: use PolarAxes.get_theta_offset and PolarAxes.get_theta_direction to obtain the relevant numbers to include into the calculation. |
I ran into a problem while trying to setup. I'm currently following this guide: https://matplotlib.org/devdocs/devel/contribute.html While running this command I got this error which was an easy fix by running However, after running again the command again, I was hit with a longer error
I tried looking around online and was told to install from these two sites: I installed them, deleted my virtual env, and repeated the steps, but still receive the same error. Any ideas on how to proceed? Also, here's the full log: meson-log.txt |
Sorry, I cannot help setting up the compiler infrastructure on Windows. That's not my OS for development. |
I'd like to work on this issue if possible! Newcomer so I may need some assistance. |
@vas1l if the answers aren't in the following docs, please let us know: |
Removed the Good first issue label. Partly in hope to not attract any more duplicate PRs, but also because I think the discussion in #28905 is beyond the first issue level! |
Bug summary
For the
projection="polar"
axes that are set to use a different theta direction or theta zero location other than the default, the caps ofax.errorbar
would be rotated strangely.Code for reproduction
Actual outcome
Expected outcome
The caps of error bars are expected to be still perpendicular to the error bar lines.
Additional information
No response
Operating system
Ubuntu 20.04
Matplotlib Version
3.9.1
Matplotlib Backend
module://matplotlib_inline.backend_inline
Python version
3.9.18
Jupyter version
No response
Installation
conda
The text was updated successfully, but these errors were encountered: