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

Fix XYPlot axis major tick mark hangup #3093

Merged
merged 2 commits into from
Jul 25, 2024
Merged

Fix XYPlot axis major tick mark hangup #3093

merged 2 commits into from
Jul 25, 2024

Conversation

kasemir
Copy link
Collaborator

@kasemir kasemir commented Jul 25, 2024

#2712 and #2719 updated the axis tick mark computation, see "adjustRange" calls, but the result can still be problematic.

Create XYPlot.
Set width to 1530 pixels.
Set X axis range to min=3.0, max=3.0
There will be a warning about the invalid axis range, it gets adjusted to some small range.
The major tick mark computation then gets stuck.
It keeps adding tick marks for the same position, using one CPU core until it runs out of memory.

This update detects a stuck linear axis tick mark computation and moves on.

kasemir added 2 commits July 25, 2024 14:43
Create XYPlot.
Set width to 1530 pixels.
Set X axis range to min=3.0, max=3.0
There will be a warning about the invalid axis range, it gets adjusted
to some small range, but then the major tick mark computation gets
stuck, keeps adding tick marks for the same position until it runs out
of memory.

This update detects a stuck linear axis tick mark computation and moved
on.
@kasemir kasemir merged commit 02ca91a into master Jul 25, 2024
2 checks passed
@kasemir kasemir deleted the plot_axis_ticks branch July 25, 2024 19:59
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