Skip to content
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

Badly formatted zero break for the "~g" format #1246

Closed
ASmirnov-HORIS opened this issue Nov 14, 2024 · 0 comments
Closed

Badly formatted zero break for the "~g" format #1246

ASmirnov-HORIS opened this issue Nov 14, 2024 · 0 comments

Comments

@ASmirnov-HORIS
Copy link
Collaborator

Example:

data = {
    "x": [1.7, 1.4, 1.5, 1.4, 1.5],
    "y": [
      0.05999999999999994,
      0.10999999999999982,
      -0.04000000000000009,
      0.009999999999999842,
      -0.1400000000000001
    ]
}

ggplot(data, aes('x', 'y')) + geom_point() + scale_y_continuous(format="~g")

Output:

Expected:


The same applies to the "~e" and "~s" formats.

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

1 participant