L iddlZddlZddlmZmZmZ ddlZdejd<ddl m Z dZ ddlmZmZmZmZmZmZej*j-e d Gd d Zy#e $rdZ YEwxYw) N)assert_assert_array_equalassert_allcloseAggbackendTF)delaunay_plot_2dvoronoi_plot_2dconvex_hull_plot_2dDelaunayVoronoi ConvexHullzMatplotlib not available)reasonc2eZdZgdZdZdZdZdZdZy) TestPlotting))rr)r)rr)rrc<tj}t|j}|jj }t ||j}t|j|t||ut ||jyNax) pltfigurer points simplicescopyrgcarr)selffigobjs_beforers i/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/scipy/spatial/tests/test__plotutils.py test_delaunayzTestPlotting.test_delaunaysijjlt{{#==%%' SSWWY /3==(3S+ctj}t|j}t ||j }t ||ut |t |dy)NrF) show_vertices)rrr rr rr)rrrr s r! test_voronoizTestPlotting.test_voronoi sKjjldkk" CCGGI .S51r#ctj}t|j}t ||j }t ||ut |yr)rrr rr rr)rrtrir s r!test_convex_hullzTestPlotting.test_convex_hull)sAjjl%  2SC r#cLtjddgddgddgddgd d gg}t|}t|}|j }|j d j }tjd d gddggddgddggddgddggddgddggg}t||y)Ngnin@br(%@gft@>,%@g$$Im@ӝ7*@gBz !vp@`MNe)@g1f'qk@5*@rg*g\q@g*ogV謫q@gf3gwh\q@ggaogϘ^z@giZ@gl@g9nJf4gkZ~egxðgr@gtg@g}t@g6-p@nparrayr r r collections get_segmentsrrrvorrrinfinite_segmentsexpected_segmentss r! test_gh_19653zTestPlotting.test_gh_196531s,.@A.0BC.0BC.0AB.0BC EF foc" WWYNN1-::<HH :'>(2L'A'C(4m'D(4m'D'F(4|'D(5~'F'H(4m'D(4m'D'F &GH )+<=r#cLtjddgddgddgddgd d gg}t|}t|}|j }|j d j }tjd d gddggddgddggddgddggddgddggg}t||y)NgnN[8@r+g4>@@r,gI'L7@r-g 0b:@r.g6;5@r/rg7eF<@gҍ @g.+=E<@gV LEgeF<@gۮ @g6E@gmBR9L@gFv6@g o'@g]tq/(g\rV8g>=@gw S@gώLn@@g8`@r0r5s r!test_gh_19653_smaller_aspectz)TestPlotting.test_gh_19653_smaller_aspectGsO-?@-/AB-/AB-/@A-/AB DE foc" WWYNN1-::<HH 8'<(1<'@'B(3Z'@(3['A'C(3Z'@(4l'C'E(3['A(3\'B'D &EF )+<=r#N) __name__ __module__ __qualname__rr"r&r)r9r;r#r!rrs )F,2!>,>r#r)pytestnumpyr1 numpy.testingrrr matplotlibrcParamsmatplotlib.pyplotpyplotrhas_matplotlib Exception scipy.spatialrr r r r r markskipifrr?r#r!rLs FF%*J "#N## &/IJH>H>KH>NsA++A54A5