Skip to content
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

Errorbar limits arrow heads point in wrong direction on inverted axis #8524

Closed
Lyalpha opened this issue Apr 21, 2017 · 1 comment
Closed

Comments

@Lyalpha
Copy link

Lyalpha commented Apr 21, 2017

When plotting errorbar limits, the arrow head points in the wrong direction when the x (y) axis does not increase to the right (up) on v2.0.0.

plt.subplot(121)
plt.errorbar(0.5,0.5, xerr=0.1, yerr=0.1, uplims=True, xlolims=True, marker="o")
plt.xlim(0,1)
plt.ylim(0,1)
plt.subplot(122)
plt.errorbar(0.5,0.5, xerr=0.1, yerr=0.1, uplims=True, xlolims=True, marker="o")
plt.xlim(1,0)
plt.ylim(1,0)
plt.show()

mpl_errorbar_inverted

@Lyalpha Lyalpha closed this as completed Apr 21, 2017
@Lyalpha
Copy link
Author

Lyalpha commented Apr 21, 2017

As stated in documentation, calling the axis limits before errorbar fixes this - apologies.

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

No branches or pull requests

1 participant