
    G8c                     6    d dl Zd dlmZ d dlmZ d dlmZ d Z	y)    N)Triangulationc                    ddl }t        j                  |i |\  }}}|j                  |j                  |j
                  }}}|r|d   nd}|j                  j                  j                  |      \  }	}
}t        j                  |t        j                        }t        d|	|
|f      D ]  \  }}|	|j                  ||        |d   }	i |d|j                  dd      d	}|	d
vrt!        j"                  ||   dt         j$                  d      }t!        j"                  ||   dt         j$                  d      } | j&                  |j)                         |j)                         fi |}n | j&                  g g fi |}|d   }
i |ddi}|j+                  dd       |
d
vr | j&                  ||fi |}||z   S  | j&                  g g fi |}||z   S )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                        8/usr/lib/python3/dist-packages/matplotlib/tri/triplot.pytriplotr5      s   > %>>OOCv55#%%%qA $q'rC)44II#NIvu 
			6B8"FE24 $S?MM#s#$ ;I
&&1%H
 //ii%!RVV!<ii%!RVV!<BGGK--/1B1B1D (&(	 BGGB/h/	 \F
VJ NN7D!,,bgga1j1 {"" bggb"3
3{""    )
numpyr   matplotlib.tri.triangulationr   matplotlib.cbookr   matplotlib.lineslinesr   r5    r6   r4   <module>r=      s     6   !O#r6   