test_plane2d_edges

Plane2D Edge Cases

Tests for boundary conditions, label overlap, clipping, and extreme ranges.

Case 1: Very Small Range (tick label overlap)

00.20.40.60.8100.20.40.60.81pt0pt1pt2pt3

Case 2: Very Large Range (label fit)

-100-75-50-25255075100-100-75-50-25255075100y=xOrigin (0,0)Near max (99,99)Exact max (100,100)Exact min (-100,-100)

Case 3: Asymmetric Range

246810-10-8-6-4-2y=-xBottom-left corner (-1,-10)Top-right corner (10,1)Bottom-right (10,-10)Top-left (-1,1)

Case 4: Points Exactly at Boundaries

-3-2-1123-3-2-1123BL(-3,-3)TL(-3,3)BR(3,-3)TR(3,3)Left edgeRight edgeBottom edgeTop edge

Case 5: Points with Long Labels

-4-224-4-224This is a very long annotation label at origin (0,0)Another extremely verbose label for point (2,3)Top-left verbose annotation (-4,4)Bottom-right verbose annotation (4,-4)Yet another long label (-2,-3)

Case 6: Negative-Only Ranges

-5-4.5-4-3.5-3-2.5-2-1.5-1-5-4.5-4-3.5-3-2.5-2-1.5-1y=xMin corner (-5,-5)Max corner (-1,-1)TL(-5,-1)BR(-1,-5)

Case 7: Tiny Range with Dense Points

00.10.20.30.40.500.10.20.30.40.50.050.250.50

Case 8: Mixed Lines Near Boundaries

-3-2-1123-3-2-1123y=3xy=-3xy=0.1x+2.9y=-0.1x-2.9On boundary (1,3)On boundary (-1,-3)

Case 9: Positive-Only with Zero Start

02468100246810y=xOrigin (0,0)Max (10,10)(0,10)(10,0)