Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

generate_ticks needs rewrite - problem with tiny values #42

Closed
Ploppz opened this issue May 12, 2019 · 0 comments
Closed

generate_ticks needs rewrite - problem with tiny values #42

Ploppz opened this issue May 12, 2019 · 0 comments
Labels
Milestone

Comments

@Ploppz
Copy link
Contributor

Ploppz commented May 12, 2019

I had a problem when trying to save a figure, that generate_ticks(..) in src/axis.rs ran indefinitely (or until overflow happened in debug mode), with input min:-0.8230515814500334, max:-0.8230515813631452, step_size:0.00000000002.

The problem is obviously that it starts at 0.0 and counts up 0.00000000002 at a time so that for example after 5 million iterations it is only at -0.0001.

One solution could be to not start counting from 0.0, but rather from min rounded to the nearest step_size.

@milliams milliams added the bug label Mar 14, 2020
@milliams milliams added this to the 0.5.1 milestone Mar 15, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants