plane2d_ticks

Plane2D Adaptive Tick Labels Demo

This demo tests adaptive tick label rendering across different axis ranges. The tick spacing should adjust automatically based on the range magnitude.

Diagram 1: Fractional Range [0,1]

Ticks should appear at 0.2 increments for a range of [0,1]×[0,1][0,1] \times [0,1].

00.20.40.60.8100.20.40.60.81(0.2, 0.3)(0.9, 0.9)

Diagram 2: Large Range [-100,100]

Ticks should appear at intervals of 20 or 50 for a range of [100,100][-100,100].

-100-75-50-25255075100-100-75-50-25255075100Origin(75,50)(-60,-80)(-90,70)

Diagram 3: Origin at Boundary [0,10]

The origin sits at the boundary. Tick label "0" should render correctly.

02468100246810y=xOrigin boundaryMax corner

Diagram 4: Very Small Fractional Range [-0.5, 0.5]

Extremely small range – ticks should show fine-grained fractional values.

-0.4-0.20.20.4-0.4-0.20.20.4Center(0.25,0.25)(-0.25,-0.25)