Skip to content

Fix inverted axis min max span#4755

Merged
swharden merged 4 commits intoScottPlot:mainfrom
manaruto:fix-inverted-axis-min-max-span
Feb 15, 2025
Merged

Fix inverted axis min max span#4755
swharden merged 4 commits intoScottPlot:mainfrom
manaruto:fix-inverted-axis-min-max-span

Conversation

@manaruto
Copy link
Contributor

This PR fixes the behavior of MinimumSpan and MaximumSpan rules when an axis is inverted (Min > Max). Previously, these rules did not correctly account for inverted axes, leading to incorrect enforcement of span constraints.

➜ If MinimumSpan or MaximumSpan is used alongside a minimum or maximum boundary, the constraints were not being applied correctly.

➜ If MinimumSpan or MaximumSpan is used alone (without min/max boundary constraints), the axis ticks would not be displayed as inverted.

#4735

manaruto and others added 4 commits January 29, 2025 09:53
Fix MinimumSpan handling for inverted axes
Fix MaximumSpan handling for inverted axes
@swharden swharden linked an issue Feb 15, 2025 that may be closed by this pull request
@swharden
Copy link
Member

Hi @manaruto, thanks so much for this fix! It took me longer than typical to get to this one, but I'm happy to merge it in now and it will be in the next release 🚀

@swharden swharden enabled auto-merge (squash) February 15, 2025 13:48
@swharden swharden merged commit f677112 into ScottPlot:main Feb 15, 2025
1 of 3 checks passed
@manaruto manaruto deleted the fix-inverted-axis-min-max-span branch February 16, 2025 09:54
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.

MinimumSpan rule does not handle inverted axes correctly

2 participants