Always generate at least 2 major ticks (#1420)#1421
Always generate at least 2 major ticks (#1420)#1421swharden merged 7 commits intoScottPlot:masterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
|
I noticed something while looking at this code: ScottPlot/src/ScottPlot/Renderable/AxisTicks.cs Lines 72 to 85 in 1d1d863 These function calls operate on predominantly the same data, but some of them take |
This comment has been minimized.
This comment has been minimized.
clarifies how ticks are added when the number of positions is less than 2 ScottPlot#1421
Ensures at least 3 ticks are always present when IntegerPositionsOnly is active so minor tick marks (and grid lines) are always drawn ScottPlot#1421 ScottPlot#1420
|
Hi @bclehmann, thanks for this PR! ... and sorry for my extreme delay. I moved to a new house this month and I got hit with way more disruption to my productivity than expected 😅 Things are starting to return to normal though! I added some extra logic which adds extra integer ticks in the case that
|
This warning is well-received! This is one of many serious issues with the present tick system. I'm going to prioritize refactoring the tick system soon (#1028) since official Maui.Graphics development is moving more slowly than anticipated. |


Purpose: #1420
Note that this will create minor ticks even if there are no major ticks on-screen (but the minor ticks may be above or below the drawn area).
Examples
1 major tick visible
0 major ticks visible
0 major or minor ticks visible (zoomed in between minor ticks)