o
    tBh
                     @   s    d dl Zd dlmZ dd ZdS )    N)Triangulationc                 O   sv  ddl }tj|i |\}}}|j|j|j}}}|r |d nd}|jj|\}	}
}|	 }t
d|	|
|fD ]\}}|durH|||||< q8|d }	i |d|ddd	}|	d
vrtj|| dtjdd}tj|| dtjdd}| j| | fi |}n
| jg g fi |}|d }
i |ddi}|
d
vr| j||fi |}|| S | jg g fi |}|| S )a(  
    Draw a unstructured triangular grid as lines and/or markers.

    The triangulation to plot can be specified in one of two ways; either::

      triplot(triangulation, ...)

    where triangulation is a `.Triangulation` object, or

    ::

      triplot(x, y, ...)
      triplot(x, y, triangles, ...)
      triplot(x, y, triangles=triangles, ...)
      triplot(x, y, mask=mask, ...)
      triplot(x, y, triangles, mask=mask, ...)

    in which case a Triangulation object will be created.  See `.Triangulation`
    for a explanation of these possibilities.

    The remaining args and kwargs are the same as for `~.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   )matplotlib.axesr   get_from_args_and_kwargsxyedgesaxes_base_process_plot_formatcopyzipgetnpinsertnanplotravel)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_markers r,   m/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/matplotlib/tri/triplot.pytriplot   sJ   
r.   )numpyr   matplotlib.tri.triangulationr   r.   r,   r,   r,   r-   <module>   s    