Closed
Description
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.
import proplot as pplt
import numpy as np
rng = np.random.RandomState(seed=10)
x = rng.uniform(size=1000)*4 - 6
y = rng.uniform(size=1000)*2 + 6
fig, axs = pplt.subplots()
axs.hexbin(x, y)
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.
import matplotlib.pyplot as plt
import numpy as np
rng = np.random.RandomState(seed=10)
x = rng.uniform(size=1000)*4 - 6
y = rng.uniform(size=1000)*2 + 6
fig, axs = plt.subplots(nrows=1, ncols=1)
axs.hexbin(x, y)
Proplot version
Paste the results of import matplotlib; print(matplotlib.__version__); import proplot; print(proplot.version)
here.
3.5.0
0.9.5