Skip to content

Improve plot ranges and rounding#86

Closed
qndan wants to merge 1 commit into
mainfrom
better-plot-ranges
Closed

Improve plot ranges and rounding#86
qndan wants to merge 1 commit into
mainfrom
better-plot-ranges

Conversation

@qndan

@qndan qndan commented May 13, 2026

Copy link
Copy Markdown
Collaborator

Improve plot range algorithm based off of this thread: https://stackoverflow.com/questions/361681/algorithm-for-nice-grid-line-intervals-on-a-graph.

Also fixes really small ranges rounding to 0.

Screenshot 2026-05-13 at 7 51 53 AM Screenshot 2026-05-13 at 7 52 14 AM

You can test if all the plot ranges are OK by using the sliders. For the default model, the init([A]) slider will best control the bounds.

@qndan qndan force-pushed the better-plot-ranges branch from 4551e60 to 4bc687f Compare May 13, 2026 14:56
@qndan qndan requested a review from lognguyenle May 13, 2026 14:56
@qndan qndan closed this May 13, 2026
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

Successfully merging this pull request may close these issues.

1 participant