8000 scatterplot axis autoscale fails for small data values · Issue #6015 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
scatterplot axis autoscale fails for small data values #6015
Closed
@ariekahn

Description

@ariekahn

I'm finding that the scatterplot autoscaling fails when plotting small values, e.g. <0.001.

The autoscale axis range will never go below -0.008 to 0.008 for me, regardless of how small the range of the data being plotted.

plt.figure()
x = np.array([0,1,2,3])
x = np.array([2,4,5,9])
plt.scatter(x,y)

Data in a normal range produces
properly_scaled

plt.figure()
x = np.array([0,1,2,3])
x = np.array([2,4,5,9])
plt.scatter(x/10000,y/10000)

While scaling it down produces
badly_scaled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0