You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 hexbin and hist2d, and it looks like this used to be disabled for hist and histh but the #191 fix is now obsolete. Sorry for the annoying behavior! I'll fix this later today.
Note also that the #300 fix make this feature more conservative; for example when passing stuff to ax.plot(x, y) an axis will only be reversed if 1) the x limits were not previously fixed with e.g. set_xlim and 2) the x coordinates are monotonically decreasing rather than simply having a negative initial step size.
Activity
lukelbd commentedon Feb 3, 2022
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
hexbinandhist2d, and it looks like this used to be disabled forhistandhisthbut the #191 fix is now obsolete. Sorry for the annoying behavior! I'll fix this later today.Note also that the #300 fix make this feature more conservative; for example when passing stuff to
ax.plot(x, y)an axis will only be reversed if 1) the x limits were not previously fixed with e.g.set_xlimand 2) the x coordinates are monotonically decreasing rather than simply having a negative initial step size.beckermr commentedon Feb 3, 2022
Thank you!
Disable hexbin/hist/hist2d autoreverse (fix #334)
lukelbd commentedon Feb 3, 2022
Fixed by 275bf30. Here's an example:
Result is
Truebut axes are not reversed:beckermr commentedon Feb 3, 2022
Thank you! Looking forward to a release with the patch!
esheldon commentedon Mar 15, 2024
I'm still seeing this for the
quivercommand, even in new releases, does that need to be addressed separately?