Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
matplotlib
/
tri
/
File Content:
tripcolor.pyc
� ]�3Lc @ sI d d l m Z d d l m Z d d l m Z d d l Z d � Z d S( i����( t PolyCollection( t Normalize( t TriangulationNc O s� | j s | j � n | j d d � } | j d d � } | j d d � } | j d d � } | j d d � } | j d d � } t j | | � \ } } } | j } | j } | j � } t j | | d t j f | | d t j f f d d �} t j | d � } | j | j k r,t d � � n | | j d d � } | d k r]d } d } n d } d } | j d | � | j d d � | j d | � t | | � } | j | � | j | � | d k r�t | t � s�t � n | j | � | j | � | d k s| d k r+| j | | � n | j � | j t � | j j � } | j j � } | j j � } | j j � } | | f | | f f } | j | � | j � | j! | � | S( sS Create a pseudocolor plot of an unstructured triangular grid to the :class:`~matplotlib.axes.Axes`. The triangulation can be specified in one of two ways; either:: tripcolor(triangulation, ...) where triangulation is a :class:`~matplotlib.tri.Triangulation` object, or :: tripcolor(x, y, ...) tripcolor(x, y, triangles, ...) tripcolor(x, y, triangles=triangles, ...) tripcolor(x, y, mask, ...) tripcolor(x, y, mask=mask, ...) tripcolor(x, y, triangles, mask, ...) tripcolor(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 next argument must be *C*, the array of color values, one per point in the triangulation. The colors used for each triangle are from the mean C of the triangle's three points. The remaining kwargs are the same as for :meth:`~matplotlib.axes.Axes.pcolor`. **Example:** .. plot:: mpl_examples/pylab_examples/tripcolor_demo.py t alphag �?t normt cmapt vmint vmaxt shadingt flat.t axisi i s= C array must have same length as triangulation x and y arraysi t facetedg �?t facet edgecolorst antialiasedst linewidthsN( i i i i ( ( i i i i ( g �?( g �?( i ("