Skip to content

axis limits come out reversed a lot #334

Description

@beckermr

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.

importproplotasppltimportnumpyasnprng=np.random.RandomState(seed=10)
x=rng.uniform(size=1000)*4-6y=rng.uniform(size=1000)*2+6fig, 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.

importmatplotlib.pyplotaspltimportnumpyasnprng=np.random.RandomState(seed=10)
x=rng.uniform(size=1000)*4-6y=rng.uniform(size=1000)*2+6fig, 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions