Skip to content

polar error bar fix #28924

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

Closed
wants to merge 2 commits into from
Closed

Conversation

markovas1ljevic
Copy link

@markovas1ljevic markovas1ljevic commented Oct 2, 2024

Please feel free to review and or test this as I was unable to actually create the plot due to issues with installing python and matplotlib on my local machine here.
This was supposed to be a bug fix for issue number #28885 linked here : #28885
I changed the rotation coefficient in the lines showed in the original post and the sign of the rotate call to match the new coefficient.

import matplotlib.pyplot as plt
import numpy as np

theta = np.arange(0, 2 * np.pi, np.pi / 8)
r = theta / np.pi / 2 + 0.5

fig = plt.figure(figsize=(10, 10))
ax = fig.add_subplot(projection='polar')
ax.set_theta_zero_location("N")
ax.set_theta_direction(-1)
ax.errorbar(theta, r, xerr=0.1, yerr=0.1, capsize=7, fmt="o", c="seagreen")
ax.set_title("Pretty polar error bars")
plt.show()

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@rcomer
Copy link
Member

rcomer commented Oct 3, 2024

Hi @vas1l thank you for your interest in contributing to Matplotlib. I'm sorry to hear you have problems installing - we have the incubator gitter chat for new contributors to get help, so you are very welcome to ask any questions there. There is also an option to use GitHub Codespaces and work in the browser instead of installing locally.

The continuous integration checks here show that an existing unit test for errorbar is failing, so something is not quite right with your fix. If you get a local or codespaces install working then you could investigate that.

However, as you know, there is already an open PR for this issue at #28905. We usually take the first PR opened against an issue and in this case #28905 seems closer to completion so likely it will be merged rather than this. If you think #28905 could be improved then you are welcome to leave a review there.

I am sorry but I am going to close this as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants