-
Notifications
You must be signed in to change notification settings - Fork 102
axis limits come out reversed a lot #334
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 is related to #300 (also documented on this page). Proplot automatically reverses the axis when it detect "dependent" variable coordinates and the axes were not previously fixed -- however this behavior should definitely be disabled for Note also that the #300 fix make this feature more conservative; for example when passing stuff to |
Thank you! |
Fixed by 275bf30. Here's an example: fig, axs = pplt.subplots(ncols=2, share=False)
x = np.sort(np.random.rand(100) * 100)
x = x[::-1]
axs[0].hist(x)
axs[1].hexbin(x, x)
print(pplt.internals.inputs._is_descending(x)) Result is |
Thank you! Looking forward to a release with the patch! |
I'm still seeing this for the |
Uh oh!
There was an error while loading. Please reload this page.
Description
Right now in many cases, the plot limits come out reverse (e.g., the x-axis goes from 1 to -4 instead of -4 to 1).
Steps to reproduce
A "Minimal, Complete and Verifiable Example" will make it much easier for maintainers to help you.
Expected behavior: axis limits numerically ordered (should be -6 to -2)
Actual behavior: came out reversed (-2 to -6)
Equivalent steps in matplotlib
Please try to make sure this bug is related to a proplot-specific feature. If you're not sure, try to replicate it with the native matplotlib API. Matplotlib bugs belong on the matplotlib github page.
Proplot version
Paste the results of
import matplotlib; print(matplotlib.__version__); import proplot; print(proplot.version)
here.3.5.0
0.9.5
The text was updated successfully, but these errors were encountered: