Skip to content

Scatter Plot: Vertical Empty Space WITHIN PLOT AREA at the top/bottom. #4583

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

Closed
bewithjonam opened this issue Feb 14, 2020 · 2 comments
Closed

Comments

@bewithjonam
Copy link

Issue:

Given there are X entries to be plotted as a scatter plot
And I have given a height in the layout (X * 20)
When I plot a scatter plot chart
Then there is an empty space at the top & bottom
(empty space increases with the number of entries)

Expected:

Given ....
When I plot a scatter plot chart
Then there is no empty space at the top & bottom

Minimum Repro Steps:

https://codepen.io/bewithjonam/pen/GRJoKLG

@etpinard
Copy link
Contributor

etpinard commented Feb 14, 2020

That's the expected behavior at the moment (unfortunately).

This issue is essentially a duplicate of #1775

The main take-home points are:

  • we add "padding" about the y-axis range for scatter traces except in a few cases (full logic here)
  • that "padding" is computed as 5% of the axis length, meaning the longer the y-axis, the greater the number of pixel of padding within the y-axis range (see logic here)

We are hoping to make our autorange behavior more configurable in the future. You can subscribe to #1876 for the most up-to-date development info.

@etpinard
Copy link
Contributor

Closing. Please subscribe to #1876 for the most up-to-date development info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants