
    h                     6    S SK rS SKJr  S SKJr  S SKJr  S r	g)    N)Triangulationc                    SSK n[        R                  " U0 UD6u  pAnUR                  UR                  UR
                  pvnU(       a  US   OSnUR                  R                  R                  U5      u  pn[        R                  " U[        R                  5      n[        SXU45       H  u  pUc  M
  UR                  X5        M     US   n	0 UESUR                  SS5      S	.EnU	S
;  a  [         R"                  " XW   S[         R$                  SS9n[         R"                  " Xg   S[         R$                  SS9nU R&                  " UR)                  5       UR)                  5       40 UD6nOU R&                  " / / 40 UD6nUS   n
0 UESS0EnUR+                  SS5        U
S
;  a  U R&                  " XV40 UD6nUU-   $ U R&                  " / / 40 UD6nUU-   $ )a  
Draw an unstructured triangular grid as lines and/or markers.

Call signatures::

  triplot(triangulation, ...)
  triplot(x, y, [triangles], *, [mask=mask], ...)

The triangular grid can be specified either by passing a `.Triangulation`
object as the first parameter, or by passing the points *x*, *y* and
optionally the *triangles* and a *mask*. If neither of *triangulation* or
*triangles* are given, the triangulation is calculated on the fly.

Parameters
----------
triangulation : `.Triangulation`
    An already created triangular grid.
x, y, triangles, mask
    Parameters defining the triangular grid. See `.Triangulation`.
    This is mutually exclusive with specifying *triangulation*.
other_parameters
    All other args and kwargs are forwarded to `~.Axes.plot`.

Returns
-------
lines : `~matplotlib.lines.Line2D`
    The drawn triangles edges.
markers : `~matplotlib.lines.Line2D`
    The drawn marker nodes.
r   N )	linestylemarkercolorr   Nonezorder   )r   r
   )Nr	   r       )axisr   label)matplotlib.axesr   get_from_args_and_kwargsxyedgesaxes_base_process_plot_formatcbooknormalize_kwargsmlinesLine2Dzip
setdefaultgetnpinsertnanplotravelpop)axargskwargs
matplotlibtrir   r   r   fmtr   r   r   kwkeyvalkw_linestri_lines_xtri_lines_y	tri_lines
kw_markerstri_markerss                        I/var/www/html/env/lib/python3.13/site-packages/matplotlib/tri/_triplot.pytriplotr5      s   > %>>OOCv55#%%%A $q'rC)44II#NIu 
			6B8"E24?MM##4 ;I
&&1%H
 //ii!RVV!<ii!RVV!<GGK--/1B1B1D (&(	 GGB/h/	 \F
VJ NN7D!,,gga1j1 {"" ggb"3
3{""    )
numpyr   matplotlib.tri._triangulationr   matplotlib.cbookr   matplotlib.lineslinesr   r5    r6   r4   <module>r=      s     7   !O#r6   