+
    LV-j›  ã                   ó@   € ^ RI t. ROtR tR tRR ltRR ltRR ltR# )	é    Nc                  óJ   € ^ RI Hp  V P                  4       P                  4       # )r   N)Úmatplotlib.pyplotÚpyplotÚfigureÚgca)Úplts    Úi/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/scipy/spatial/_plotutils.pyÚ	_get_axesr
      s   € Ý#à�:‰:‹<×ÑÓÐó    c                 ó(  € R \         P                  ! V^ R7      ,          pVP                  ^ R7      V,
          pVP                  ^ R7      V,           pV P	                  V^ ,          V^ ,          4       V P                  V^,          V^,          4       R# )gš™™™™™¹?©ÚaxisN)ÚnpÚptpÚminÚmaxÚset_xlimÚset_ylim)ÚaxÚpointsÚmarginÚxy_minÚxy_maxs   &&   r	   Ú_adjust_boundsr      sm   € Ø”2—6’6˜& qÔ)Õ)€FØ�Z‰Z˜QˆZÓ &Õ(€FØ�Z‰Z˜QˆZÓ &Õ(€FØ‡K�K��q•	˜6 !�9Ô%Ø‡K�K��q•	˜6 !�9Ö%r   c                ón  € V P                   P                  ^,          ^8w  d   \        R4      hV P                   P                  w  r#T;'       g    \	        4       pVP                  W#R4       VP                  W#V P                  P                  4       4       \        WP                   4       VP                  # )aÆ  
Plot the given Delaunay triangulation in 2-D

Parameters
----------
tri : scipy.spatial.Delaunay instance
    Triangulation to plot
ax : matplotlib.axes.Axes instance, optional
    Axes to plot on

Returns
-------
fig : matplotlib.figure.Figure instance
    Figure for the plot

See Also
--------
Delaunay
matplotlib.pyplot.triplot

Notes
-----
Requires Matplotlib.

Examples
--------

>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>> from scipy.spatial import Delaunay, delaunay_plot_2d

The Delaunay triangulation of a set of random points:

>>> rng = np.random.default_rng()
>>> points = rng.random((30, 2))
>>> tri = Delaunay(points)

Plot it:

>>> _ = delaunay_plot_2d(tri)
>>> plt.show()

z!Delaunay triangulation is not 2-DÚo)r   ÚshapeÚ
ValueErrorÚTr
   ÚplotÚtriplotÚ	simplicesÚcopyr   r   )Útrir   ÚxÚys   &&  r	   Údelaunay_plot_2dr'      s…   € ðX ‡z�z×Ñ˜Õ˜aÔÜÐ<Ó=Ð=à�:‰:�<‰<�D€Aà	×	Ð	Œy‹{€BØ‡G�GˆA�#ÔØ‡J�Jˆq�S—]‘]×'Ñ'Ó)Ô*ä�2—z‘zÔ"à�9‰9Ðr   c                óÐ  € ^ RI Hp V P                  P                  ^,          ^8w  d   \	        R4      hT;'       g    \        4       pVP                  V P                  R,          V P                  R,          R4       V P                   Uu. uF  q0P                  V,          NK  	  ppVP                  V! VRRR7      4       \        WP                  4       VP                  # u upi )	a®  
Plot the given convex hull diagram in 2-D

Parameters
----------
hull : scipy.spatial.ConvexHull instance
    Convex hull to plot
ax : matplotlib.axes.Axes instance, optional
    Axes to plot on

Returns
-------
fig : matplotlib.figure.Figure instance
    Figure for the plot

See Also
--------
ConvexHull

Notes
-----
Requires Matplotlib.


Examples
--------

>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>> from scipy.spatial import ConvexHull, convex_hull_plot_2d

The convex hull of a random set of points:

>>> rng = np.random.default_rng()
>>> points = rng.random((30, 2))
>>> hull = ConvexHull(points)

Plot it:

>>> _ = convex_hull_plot_2d(hull)
>>> plt.show()

©ÚLineCollectionzConvex hull is not 2-Dr   ÚkÚsolid)ÚcolorsÚ	linestyle©ºNNNr   ©r0   é   )Úmatplotlib.collectionsr*   r   r   r   r
   r    r"   Úadd_collectionr   r   )Úhullr   r*   ÚsimplexÚline_segmentss   &&   r	   Úconvex_hull_plot_2dr8   N   s¹   € õX 6à‡{�{×Ñ˜Õ˜qÔ ÜÐ1Ó2Ð2à	×	Ð	Œy‹{€BØ‡G�GˆD�K‰K˜Õ˜tŸ{™{¨4Õ0°#Ô6Ø9=¿ºÓH¹¨g—[‘[ ×)Ð)¹€MÐHØ×Ñ‘n ]Ø,/Ø/6ô8ô 9ô �2—{‘{Ô#à�9‰9Ðùò Is   ÂC#c           
     ó¸  € ^ RI Hp V P                  P                  ^,          ^8w  d   \	        R4      hT;'       g    \        4       pVP                  RR4      '       dJ   VP                  RR4      pVP                  V P                  R,          V P                  R,          RVR7       VP                  R	R4      '       d6   VP                  V P                  R,          V P                  R,          R
4       VP                  RR4      pVP                  RR4      pVP                  RR4      pV P                  P                  ^ R7      p\        P                  ! V P                  ^ R7      p	. p
. p\        V P                  V P                  4       EFð  w  rÍ\        P                  ! V4      p\        P                   ! V^ 8¬  4      '       d%   V
P#                  V P                  V,          4       K_  WÝ^ 8¬  ,          ^ ,          pV P                  V^,          ,          V P                  V^ ,          ,          ,
          pV\        P$                  P'                  V4      ,          p\        P(                  ! V^,          ) V^ ,          .4      pV P                  V,          P                  ^ R7      p\        P*                  ! \        P,                  ! VV,
          V4      4      V,          pV P.                  '       d   V) p\1        V	P3                  4       V	P5                  4       ,          4      pV P                  V,          VV	P3                  4       ,          V,          ,           pVP#                  V P                  V,          V.4       EKó  	  VP7                  V! V
VVVRR7      4       VP7                  V! VVVVRR7      4       \9        WP                  4       VP:                  # )a™  
Plot the given Voronoi diagram in 2-D

Parameters
----------
vor : scipy.spatial.Voronoi instance
    Diagram to plot
ax : matplotlib.axes.Axes instance, optional
    Axes to plot on
show_points : bool, optional
    Add the Voronoi points to the plot.
show_vertices : bool, optional
    Add the Voronoi vertices to the plot.
line_colors : string, optional
    Specifies the line color for polygon boundaries
line_width : float, optional
    Specifies the line width for polygon boundaries
line_alpha : float, optional
    Specifies the line alpha for polygon boundaries
point_size : float, optional
    Specifies the size of points

Returns
-------
fig : matplotlib.figure.Figure instance
    Figure for the plot

See Also
--------
Voronoi

Notes
-----
Requires Matplotlib. For degenerate input, including collinearity and
other violations of general position, it may be preferable to
calculate the Voronoi diagram with Qhull options ``QJ`` for random
joggling, or ``Qt`` to enforce triangulated output. Otherwise, some
Voronoi regions may not be visible.

Examples
--------
>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>> from scipy.spatial import Voronoi, voronoi_plot_2d

Create a set of points for the example:

>>> rng = np.random.default_rng()
>>> points = rng.random((10,2))

Generate the Voronoi diagram for the points:

>>> vor = Voronoi(points)

Use `voronoi_plot_2d` to plot the diagram:

>>> fig = voronoi_plot_2d(vor)

Use `voronoi_plot_2d` to plot the diagram again, with some settings
customized:

>>> fig = voronoi_plot_2d(vor, show_vertices=False, line_colors='orange',
...                       line_width=2, line_alpha=0.6, point_size=2)
>>> plt.show()

r)   zVoronoi diagram is not 2-DÚshow_pointsTÚ
point_sizeNÚ.)Ú
markersizeÚshow_verticesr   Úline_colorsr+   Ú
line_widthg      ð?Ú
line_alphar   r,   )r-   ÚlwÚalphar.   Údashedr/   r1   )r3   r*   r   r   r   r
   Úgetr    ÚverticesÚmeanr   r   ÚzipÚridge_pointsÚridge_verticesÚasarrayÚallÚappendÚlinalgÚnormÚarrayÚsignÚdotÚfurthest_siteÚabsr   r   r4   r   r   )Úvorr   Úkwr*   r;   r?   r@   rA   ÚcenterÚ	ptp_boundÚfinite_segmentsÚinfinite_segmentsÚpointidxr6   ÚiÚtÚnÚmidpointÚ	directionÚaspect_factorÚ	far_points   &&,                  r	   Úvoronoi_plot_2drc   Š   så  € õF 6à
‡z�z×Ñ˜Õ˜aÔÜÐ5Ó6Ð6à	×	Ð	Œy‹{€Bà	‡v�vˆm˜T×"Ò"Ø—V‘V˜L¨$Ó/ˆ
Ø
�‰�—
‘
˜4Õ  #§*¡*¨TÕ"2°CÀJˆÔOØ	‡v�vˆo˜t×$Ò$Ø
�‰�—‘˜TÕ" C§L¡L°Õ$6¸Ô<à—&‘&˜¨Ó,€KØ—‘˜ cÓ*€JØ—‘˜ cÓ*€Jà�Z‰Z�_‰_ !ˆ_Ó$€FÜ—’�s—z‘z¨Ô*€Ià€OØÐÜ  ×!1Ñ!1°3×3EÑ3E×FÑˆÜ—*’*˜WÓ%ˆÜ�6Š6�'˜Q‘,×ÒØ×"Ñ" 3§<¡<°Õ#8Ö9à 1™Õ% aÕ(ˆAà—
‘
˜8 A�;Õ'¨#¯*©*°X¸aµ[Õ*AÕAˆAØ”—‘—‘ Ó"Õ"ˆAÜ—’˜1˜Q�4˜%  1¥˜Ó'ˆAà—z‘z (Õ+×0Ñ0°aÐ0Ó8ˆHÜŸš¤§¢ x°&Õ'8¸!Ó <Ó=ÀÕAˆIØ×!×!Ð!Ø&˜J�	Ü 	§¡£°)·-±-³/Õ AÓBˆMØŸ™ Q�¨)°i·m±m³oÕ*EÈÕ*UÕUˆIà×$Ñ$ c§l¡l°1¥o°yÐ%A×Bñ% Gð( ×Ñ‘n _Ø,7Ø(2Ø+5Ø/6ô	8ô 9ð
 ×Ñ‘nÐ%6Ø,7Ø(2Ø+5Ø/7ô	9ô :ô �2—z‘zÔ"à�9‰9Ðr   )r'   r8   rc   )N)Únumpyr   Ú__all__r
   r   r'   r8   rc   © r   r	   Ú<module>rg      s)   ðÛ â
H€òò&ô7ôt9öxzr   