ó
 m[c           @` sW   d  d l  m Z m Z m Z m Z d  d l Z d  d l Z d  d l m	 Z	 d   Z
 d S(   i    (   t   absolute_importt   divisiont   print_functiont   unicode_literalsN(   t   Triangulationc         O` s  d d l  } t j | |   \ } } } | j | j | j } } } d } t |  d k ri | d } n  | j j j	 |  \ }	 }
 } | j
   } xK t d |	 |
 | f  D]1 \ } } | d k	 rŹ | j | |  | | <qŹ qŹ W| d }	 | j
   } d | d <| j d d	  | d <|	 d k	 r|	 d k rt j | | d t j d d	 } t j | | d t j d d	 } |  j | j   | j   |  } n |  j g  g  |  } | d }
 | j
   } d | d <|
 d k	 rü|
 d k rü|  j | | |  } n |  j g  g  |  } | | S(   u  
    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 :class:`matplotlib.tri.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
    :class:`~matplotlib.tri.Triangulation` for a explanation of these
    possibilities.

    The remaining args and kwargs are the same as for
    :meth:`~matplotlib.axes.Axes.plot`.

    Return a list of 2 :class:`~matplotlib.lines.Line2D` containing
    respectively:

        - the lines plotted for triangles edges
        - the markers plotted for triangles nodes
    i    Nu    u	   linestyleu   markeru   coloru   Noneu   zorderi   u    i   t   axis(   u	   linestyleu   markeru   color(   u   Noneu    u    (   u   Noneu    u    (   t   matplotlib.axesR   t   get_from_args_and_kwargst   xt   yt   edgest   lent   axest   _baset   _process_plot_formatt   copyt   zipt   Nonet   gett   npt   insertt   nant   plott   ravel(   t   axt   argst   kwargst
   matplotlibt   triR   R	   R
   t   fmtt	   linestylet   markert   colort   kwt   keyt   valt   kw_linest   tri_lines_xt   tri_lines_yt	   tri_linest
   kw_markerst   tri_markers(    (    s5   lib/python2.7/site-packages/matplotlib/tri/triplot.pyt   triplot
   s:    !	

""

(   t
   __future__R    R   R   R   t   sixt   numpyR   t   matplotlib.tri.triangulationR   R*   (    (    (    s5   lib/python2.7/site-packages/matplotlib/tri/triplot.pyt   <module>   s   "