HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/self/root/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyc
�
�)�Uc	@sgdZddlZddlZddljZddlZddlj	Z	ddl
jZddl
jZddlmZddljZddljZddlmZddljZddljZddljZdejejfd��YZejj dd�defd	��YZ!d
efd��YZ"de"fd
��YZ#defd��YZ$de$fd��YZ%de$fd��YZ&defd��YZ'defd��YZ(defd��YZ)defd��YZ*defd��YZ+ej,e�Z-x@dd
dddddddf	D]Z.ejj ie-e.6�q&Wejj dej,e'��dS(su
Classes for the efficient drawing of large collections of objects that
share most properties, e.g. a large number of line segments or
polygons.

The classes are not meant to be as flexible as their single element
counterparts (e.g. you may not be able to select all line styles) but
they are meant to be fast for common use cases (e.g. a large set of solid
line segemnts)
i����N(t	docstring(tallow_rasterizationt
CollectioncBs�eZdZejgej�Zej�Z	gZ
dZd)d)d)dd)d)d)d)d)dd)d�Z
ed��Zed��Zd�Zd�Zd	�Zd
�Zd�Zd�Zed
��Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"d�Z#d�Z$d�Z%d�Z&d�Z'd�Z(d�Z)d�Z*d �Z+e+Z,d!�Z-e-Z.d"�Z/d#�Z0d$�Z1d%�Z2e2Z3d&�Z4e4Z5Z6d'�Z7d(�Z8RS(*s�
    Base class for Collections.  Must be subclassed to be usable.

    All properties in a collection must be sequences or scalars;
    if scalars, they will be converted to sequences.  The
    property of the ith element of the collection is::

      prop[i % len(props)]

    Keyword arguments and default values:

        * *edgecolors*: None
        * *facecolors*: None
        * *linewidths*: None
        * *antialiaseds*: None
        * *offsets*: None
        * *transOffset*: transforms.IdentityTransform()
        * *norm*: None (optional for
          :class:`matplotlib.cm.ScalarMappable`)
        * *cmap*: None (optional for
          :class:`matplotlib.cm.ScalarMappable`)

    *offsets* and *transOffset* are used to translate the patch after
    rendering (default no offsets).

    If any of *edgecolors*, *facecolors*, *linewidths*, *antialiaseds*
    are None, they default to their :data:`matplotlib.rcParams` patch
    setting, in sequence form.

    The use of :class:`~matplotlib.cm.ScalarMappable` is optional.  If
    the :class:`~matplotlib.cm.ScalarMappable` matrix _A is not None
    (ie a call to set_array has been made), at draw time a call to
    scalar mappable will be made to set the face colors.
    itsolidg@c
Ks1tjj|�tjj|||	�|j|�|j|�|j|�|j|�|j	|�|j
|�d|_t
jgt
j�|_|dk	rt
j|�}t|j�dkr�|t
jdd�f}n|dk	r||_||_q||_n|
|_|j|�d|_dS(s=
        Create a Collection

        %(Collection)s
        iN(tartisttArtistt__init__tcmtScalarMappablet
set_edgecolort
set_facecolort
set_linewidtht
set_linestyletset_antialiasedtset_urlstNonet_uniform_offsetstnptarraytfloat_t_offsetstasarraytlentshapetnewaxist_transOffsett_pickradiustupdatet_paths(
tselft
edgecolorst
facecolorst
linewidthst
linestylestantialiasedstoffsetsttransOffsettnormtcmapt
pickradiusturlstkwargs((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRBs*





			
cCs�yt|�fSWn_tk
rrtj|�rst|�rsyt|d�Wnttfk
rgqoX|SqsnXtd��dS(Nis1val must be a float or nonzero sequence of floats(tfloatt	TypeErrortcbooktiterableRt
ValueError(tval((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt
_get_valueps
cCsWtj|�s|f}nyt|d�Wn#ttfk
rRtd��nX|S(Nis.val must be a bool or nonzero sequence of them(R,R-tboolR+t
IndexError(R/((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt	_get_boolscCs|jS(N(R(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt	get_paths�scCs
t�dS(N(tNotImplementedError(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt	set_paths�scCs|jS(N(t_transforms(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytget_transforms�scCs�|j�}|j}|j}|j�}|jsdg|D]}|j|�^q:}|j�}n|js�|j|�}|j�}ntj	|tj
�}tj|j
�||j�||j
��}|j|�}|S(N(t
get_transformRRR4t	is_affinettransform_path_non_affinet
get_affinettransform_non_affineRRRtmpathtget_path_collection_extentstfrozenR8tinverse_transformed(Rt	transDatat	transformR$R#tpathstptresult((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytget_datalim�s 			"	cCs|jtj��}|S(N(RGt
transformstIdentityTransform(Rtrenderertbbox((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytget_window_extent�sc	Cs�|j�}|j}|j}|j�}|j�r4g}x�|j�D]}|j}|dd�df|dd�df}}|j|�}|j|�}|jt	j
t||�|j��qIWt
|j�r4|j|jdd�df�}|j|jdd�df�}t||�}q4ntj|tj�}|js�g|D]}|j|�^qY}|j�}n|js�|j|�}|j�}n||||fS(s&Point prep for drawing and hit testingNii(R9RRR4t
have_unitstverticestconvert_xunitstconvert_yunitstappendR>tPathtziptcodesRRRRR:R;R<R=(	RRCR$R#RDtpathRNtxstys((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt_prepare_points�s0			-)""	"	c
Cs�|j�sdS|j|jj�|j�|j�\}}}}|j�}|j|�|j|j	��|j
||j�||j�|||j
�|j�|j|j|j|j�|j�|j|jj�dS(N(tget_visiblet
open_groupt	__class__t__name__tupdate_scalarmappableRXtnew_gct_set_gc_cliptset_snaptget_snaptdraw_path_collectionR@R8t
get_facecolort
get_edgecolort_linewidthst_linestylest
_antialiasedst_urlstrestoretclose_group(RRJRCR$R#RDtgc((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytdraw�s


cCs�t|j�r|j||�S|j�s5tifS|j�\}}}}tj|j|j|j	|j
�||j�||t|j
�dk�	}t|�dktd|�fS(s�
        Test whether the mouse event occurred in the collection.

        Returns True | False, ``dict(ind=itemlist)``, where every
        item in itemlist contains the event.
        itind(tcallablet	_containsRYtFalseRXR>tpoint_in_path_collectiontxtyRR@R8Rt_facecolorstdict(Rt
mouseeventRCR$R#RDRm((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytcontains�s
cCs
d|_dS(Ni(R'(RR'((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytset_pickradius�scCs|jS(N(R'(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytget_pickradius�scCs(|dkrdg|_n	||_dS(N(RRh(RR(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�scCs|jS(N(Rh(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytget_urls�scCsntj|tj�}t|j�dkrF|tjdd�f}n|jdkra||_n	||_dS(s�
        Set the offsets for the collection.  *offsets* can be a scalar
        or a sequence.

        ACCEPTS: float or sequence of floats
        iN(	RRRRRRRRR(RR#((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytset_offsets�scCs!|jdkr|jS|jSdS(s8
        Return the offsets for the collection.
        N(RRR(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytget_offsets
scCs2|dkrtjd}n|j|�|_dS(s�
        Set the linewidth(s) for the collection.  *lw* can be a scalar
        or a sequence; if it is a sequence the patches will cycle
        through the sequence

        ACCEPTS: float or sequence of floats
        spatch.linewidthN(RtmpltrcParamsR0Re(Rtlw((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRscCs
|j|�S(salias for set_linewidth(R(RR((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytset_linewidths"scCs
|j|�S(salias for set_linewidth(R(RR((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytset_lw&scCs�yztjj}tj|�rl||kr:||g}qy|tjkr`|tj|g}qyt��n
tj|�rpy�g}x�|D]�}tj|�r�||kr�|j||�q0|tjkr�|j|tj|�q0t��q�tj|�r't	|�dkr'|j|�q�t��q�WWqytk
rlt	|�dkr`|}qmt��qyXn	t��Wn!tk
r�td|��nX||_
dS(s�
        Set the linestyle(s) for the collection.

        ACCEPTS: ['solid' | 'dashed', 'dashdot', 'dotted' |
        (offset, on-off-dash-seq) ]
        is'Do not know how to convert %s to dashesN(t
backend_basestGraphicsContextBasetdashdR,tis_string_liket	ls_mapperR.R-RQRRf(RtlsR�tdashesRr((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR*s:
!
	

cCs
|j|�S(salias for set_linestyle(R(RR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytset_linestylesTscCs
|j|�S(salias for set_linestyle(R(RR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt
set_dashesXscCs2|dkrtjd}n|j|�|_dS(sm
        Set the antialiasing state for rendering.

        ACCEPTS: Boolean or sequence of booleans
        spatch.antialiasedN(RR}R~R3Rg(Rtaa((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR
\scCs
|j|�S(salias for set_antialiased(R
(RR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytset_antialiasedsfscCs|j|�|j|�dS(s

        Set both the edgecolor and the facecolor.

        ACCEPTS: matplotlib color arg or sequence of rgba tuples

        .. seealso::

            :meth:`set_facecolor`, :meth:`set_edgecolor`
               For setting the edge or face color individually.
        N(R
R	(Rtc((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt	set_colorjs
cCs�t|_y"|j�dkr*t|_nWntk
r>nX|dkr[tjd}n||_t	j
j||j�|_
dS(sm
        Set the facecolor(s) of the collection.  *c* can be a
        matplotlib color arg (all patches have same color), or a
        sequence of rgba tuples; if it is a sequence the patches will
        cycle through the sequence.

        If *c* is 'none', the patch will not be filled.

        ACCEPTS: matplotlib color arg or sequence of rgba tuples
        tnonespatch.facecolorN(tTruet
_is_filledtlowerRptAttributeErrorRR}R~t_facecolors_originaltmcolorstcolorConvertert
to_rgba_arrayt_alphaRt(RR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR
xs	
	cCs
|j|�S(salias for set_facecolor(R
(RR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytset_facecolors�scCs|jS(N(Rt(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRc�scCs$|jdkr|j�S|jSdS(Ntface(t_edgecolorstget_facecolors(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRd�s
cCs�t|_y"|j�dkr*t|_nWntk
r>nX|dkr`d|_d|_n@|dkr|tj	d}n||_t
jj||j
�|_dS(s�
        Set the edgecolor(s) of the collection. *c* can be a
        matplotlib color arg (all patches have same color), or a
        sequence of rgba tuples; if it is a sequence the patches will
        cycle through the sequence.

        If *c* is 'face', the edge color will always be the same as
        the face color.  If it is 'none', the patch boundary will not
        be drawn.

        ACCEPTS: matplotlib color arg or sequence of rgba tuples
        R�R�spatch.edgecolorN(R�t_is_strokedR�RpR�R�t_edgecolors_originalRR}R~R�R�R�R�(RR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR	�s
	
		cCs
|j|�S(salias for set_edgecolor(R	(RR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytset_edgecolors�scCs�|dk	r=yt|�Wq=tk
r9td��q=Xntjj||�y"tjj|j	|j
�|_Wnttt
fk
r�nXy4|jdkr�tjj|j|j
�|_nWnttt
fk
r�nXdS(s�
        Set the alpha tranparencies of the collection.  *alpha* must be
        a float or *None*.

        ACCEPTS: float or None
        salpha must be a float or NoneR�N(RR*R+RRt	set_alphaR�R�R�R�R�RtR�R2R�R�(Rtalpha((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR��s"
		cCs|jS(N(Re(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytget_linewidths�scCs|jS(N(Rf(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytget_linestyles�scCs�|jdkrdS|jjdkr4td��n|jr[|j|j|j�|_n'|jr�|j|j|j�|_	ndS(sb
        If the scalar mappable array is not none, update colors
        from scalar data
        Nis&Collections can only map rank 1 arrays(
t_ARtndimR.R�tto_rgbaR�RtR�R�(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR]�s		cCs�tjj||�|j|_|j|_|j|_|j|_|j|_|j|_|j	|_	|j
|_
|j|_|j|_|j
|_
dS(s"copy properties from other to selfN(RRtupdate_fromRgR�R�R�RtReRfRR�R%R&(Rtother((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR��sN(9R\t
__module__t__doc__RRRRRHRIRR7tzorderRRtstaticmethodR0R3R4R6R8RGRLRXRRlRwRxRyRRzR{R|RR�R�RR�R�R
R�R�R
R�RcR�Rdtget_edgecolorsR	R�R�R�t
get_linewidthR�t
get_dashest
get_linestyleR]R�(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRsp"#
						 							
				*			
											
	
s�    Valid Collection keyword arguments:

        * *edgecolors*: None
        * *facecolors*: None
        * *linewidths*: None
        * *antialiaseds*: None
        * *offsets*: None
        * *transOffset*: transforms.IdentityTransform()
        * *norm*: None (optional for
          :class:`matplotlib.cm.ScalarMappable`)
        * *cmap*: None (optional for
          :class:`matplotlib.cm.ScalarMappable`)

    *offsets* and *transOffset* are used to translate the patch after
    rendering (default no offsets)

    If any of *edgecolors*, *facecolors*, *linewidths*, *antialiaseds*
    are None, they default to their :data:`matplotlib.rcParams` patch
    setting, in sequence form.
tPathCollectioncBs)eZdZejd��Zd�ZRS(s>
    This is the most basic :class:`Collection` subclass.
    cKs!tj||�|j|�dS(ss
        *paths* is a sequence of :class:`matplotlib.path.Path`
        instances.

        %(Collection)s
        N(RRR6(RRDR)((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRs	cCs
||_dS(N(R(RRD((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR6's(R\R�R�Rtdedent_interpdRR6(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�s
tPolyCollectioncBsAeZejded��Zed�ZeZe	d��Z
RS(cKs-tj||�||_|j||�dS(s�
        *verts* is a sequence of ( *verts0*, *verts1*, ...) where
        *verts_i* is a sequence of *xy* tuples of vertices, or an
        equivalent :mod:`numpy` array of shape (*nv*, 2).

        *sizes* is *None* (default) or a sequence of floats that
        scale the corresponding *verts_i*.  The scaling is applied
        before the Artist master transform; if the latter is an identity
        transform, then the overall scaling is such that if
        *verts_i* specify a unit square, then *sizes_i* is the area
        of that square in points^2.
        If len(*sizes*) < *nv*, the additional values will be
        taken cyclically from the array.

        *closed*, when *True*, will explicitly close the polygon.

        %(Collection)s
        N(RRt_sizest	set_verts(RtvertstsizestclosedR)((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR,s	cCsutjj|�r3|jtj�jtj�}n|rLg|_x,|D]�}t|�r,tjj|�r�tjj	|tj
d�g�}n-tj|�}tj	|tj
d�g�}tj|j
ddtjj�}tjj|(tjj|d<tjj|d<|jjtj||��qI|jjtj|��qIWn%g|D]}tj|�^qS|_dS(	s8This allows one to delay initialization of the vertices.iiitdtypei����N(ii(ii(Rtmat
isMaskedArraytastypeRtfilledtnanRRtconcatenatetzerosRtemptyRR>RRt	code_typetLINETOtMOVETOt	CLOSEPOLYRQ(RR�R�txyRT((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�Ds"!	
$"
 cCsg|jdk	rWg|jD]2}tj�jtj|�|jjd�^q|_	nt
j||�S(NgR@(R�RRHtAffine2DtscaleRtsqrttfiguretdpiR7RRl(RRJRr((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRl^sEN(R\R�RR�RR�RR�R6RRl(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�+s
tBrokenBarHCollectioncBs/eZdZejd��Zed��ZRS(s]
    A collection of horizontal bars spanning *yrange* with a sequence of
    *xranges*.
    c
Ks�|\}}||}g|D]G\}}||f||f|||f|||f||fg^q}	tj||	|�dS(s�
        *xranges*
            sequence of (*xmin*, *xwidth*)

        *yrange*
            *ymin*, *ywidth*

        %(Collection)s
        N(R�R(
RtxrangestyrangeR)tymintywidthtymaxtxmintxwidthR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRms
Tc
Ks�g}x_tj|�D]N\}}|||!}t|�sAqn|j|d|d|df�qWt||||g|�}	|	S(s(
        Create a BrokenBarHCollection to plot horizontal bars from
        over the regions in *x* where *where* is True.  The bars range
        on the y-axis from *ymin* to *ymax*

        A :class:`BrokenBarHCollection` is returned.  *kwargs* are
        passed on to the collection.
        ii����(tmlabtcontiguous_regionsRRQR�(
RrR�R�twhereR)R�tind0tind1txslicet
collection((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt
span_where~s

'(R\R�R�RR�RR�R�(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�hstRegularPolyCollectioncBs\eZdZejjZejddd��Z	e
d��Zd�Zd�Z
d�ZRS(	s6Draw a collection of regular polygons with *numsides*.iicKsWtj||�||_||_|j|�g|_||_|jtj	��dS(s]
        *numsides*
            the number of sides of the polygon

        *rotation*
            the rotation of the polygon in radians

        *sizes*
            gives the area of the circle circumscribing the
            regular polygon in points^2

        %(Collection)s

        Example: see :file:`examples/dynamic_collection.py` for
        complete example::

            offsets = np.random.rand(20,2)
            facecolors = [cm.jet(x) for x in np.random.rand(20)]
            black = (0,0,0,1)

            collection = RegularPolyCollection(
                numsides=5, # a pentagon
                rotation=0, sizes=(50,),
                facecolors = facecolors,
                edgecolors = (black,),
                linewidths = (1,),
                offsets = offsets,
                transOffset = ax.transData,
                )
        N(
RRR�t	_numsidest_path_generatorRt	_rotationt
set_transformRHRI(RtnumsidestrotationR�R)((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�s$			cCsrg|jD]O}tj�j|j�jtj|�|jj	dtjtj
��^q
|_tj
||�S(NgR@(R�RHR�trotateR�R�RR�R�R�tpiR7RRl(RRJRr((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRl�s_cCs|jS(N(R�(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytget_numsides�scCs|jS(N(R�(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytget_rotation�scCs|jS(N(R�(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt	get_sizes�s(i(R\R�R�R>RRtunit_regular_polygonR�RR�RRRlR�R�R�(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR��s'		tStarPolygonCollectioncBseZdZejjZRS(s?
    Draw a collection of regular stars with *numsides* points.(R\R�R�R>RRtunit_regular_starR�(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR��stAsteriskPolygonCollectioncBseZdZejjZRS(sC
    Draw a collection of regular asterisks with *numsides* points.(R\R�R�R>RRtunit_regular_asteriskR�(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR��stLineCollectionc
BsweZdZdZd
d
d
dd
d
d
d
dd�	Zd�ZeZeZd�Z	d�Z
d�Zd	�ZeZ
RS(s
    All parameters must be sequences or scalars; if scalars, they will
    be converted to sequences.  The property of the ith line
    segment is::

       prop[i % len(props)]

    i.e., the properties cycle if the ``len`` of props is less than the
    number of segments.
    iRicKs�|dkrtjd}n|dkr;tjdf}n|dkrZtjdf}n|j|�tjj|�}tj|d|ddd|d|d	|d
|d|d|d
|	d|
|�
|j	|�dS(s�
        *segments*
            a sequence of (*line0*, *line1*, *line2*), where::

                linen = (x0, y0), (x1, y1), ... (xm, ym)

            or the equivalent numpy array with two columns. Each line
            can be a different length.

        *colors*
            must be a sequence of RGBA tuples (eg arbitrary color
            strings, etc, not allowed).

        *antialiaseds*
            must be a sequence of ones or zeros

        *linestyles* [ 'solid' | 'dashed' | 'dashdot' | 'dotted' ]
            a string or dash tuple. The dash tuple is::

                (offset, onoffseq),

            where *onoffseq* is an even length tuple of on and off ink
            in points.

        If *linewidths*, *colors*, or *antialiaseds* is None, they
        default to their rcParams setting, in sequence form.

        If *offsets* and *transOffset* are not None, then
        *offsets* are transformed by *transOffset* and applied after
        the segments have been transformed to display coordinates.

        If *offsets* is not None but *transOffset* is None, then the
        *offsets* are added to the segments before any transformation.
        In this case, a single offset can be specified as::

            offsets=(xo,yo)

        and this value will be added cumulatively to each successive
        segment, so as to produce a set of successively offset curves.

        *norm*
            None (optional for :class:`matplotlib.cm.ScalarMappable`)
        *cmap*
            None (optional for :class:`matplotlib.cm.ScalarMappable`)

        *pickradius* is the tolerance for mouse clicks picking a line.
        The default is 5 pt.

        The use of :class:`~matplotlib.cm.ScalarMappable` is optional.
        If the :class:`~matplotlib.cm.ScalarMappable` matrix
        :attr:`~matplotlib.cm.ScalarMappable._A` is not None (ie a call to
        :meth:`~matplotlib.cm.ScalarMappable.set_array` has been made), at
        draw time a call to scalar mappable will be made to set the colors.
        slines.colorslines.linewidthslines.antialiasedRRR�R R!R"R#R$R%R&R'N(
RR}R~R�R�R�R�RRtset_segments(RtsegmentsR tcolorsR"R!R#R$R%R&R'R)((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�s,B
cCs�|dkrdSg}xE|D]=}tjj|�sMtj|tj�}n|j|�qW|jdk	r|j|�}ng|D]}t	j
|�^q�|_dS(N(RRR�R�RRRQRt_add_offsetsR>RRR(RR�t	_segmentstseg((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�Fs
cCs�|j}t|�}|jd}|dkr^xkt|�D]}||||||<q;Wn>x;t|�D]-}||}|||||d!||<qkW|S(Nii(RRRtrange(RtsegsR#tNsegstNoffstitio((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�Vs	

!cCs|j|�dS(s5
        Set the color(s) of the line collection.  *c* can be a
        matplotlib color arg (all patches have same color), or a
        sequence or rgba tuples; if it is a sequence the patches will
        cycle through the sequence.

        ACCEPTS: matplotlib color arg or sequence of rgba tuples
        N(R	(RR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�cs	cCstjd�|j|�S(s4
        Set the color(s) of the line collection.  *c* can be a
        matplotlib color arg (all patches have same color), or a
        sequence or rgba tuples; if it is a sequence the patches will
        cycle through the sequence

        ACCEPTS: matplotlib color arg or sequence of rgba tuples
        s6LineCollection.color deprecated; use set_color instead(twarningstwarnR�(RR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytcolorns	
cCs|jS(N(R�(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt	get_colorzsN(R\R�R�R�RRR�R�R6R�R�R�R�t
get_colors(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR��s&
P	
	
			tCircleCollectioncBs8eZdZejd��Zd�Zed��ZRS(s7
    A collection of circles, drawn using splines.
    cKsEtj||�||_|jtj��tjj�g|_	dS(sf
        *sizes*
            Gives the area of the circle in points^2

        %(Collection)s
        N(
RRR�R�RHRIR>RRtunit_circleR(RR�R)((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�s	cCs|jS(sreturn sizes of circles(R�(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR��scCseg|jD]B}tj�jtj|�|jjdtjtj��^q
|_	t
j||�S(NgR@(R�RHR�R�RR�R�R�R�R7RRl(RRJRr((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRl�sR(	R\R�R�RR�RR�RRl(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�~s
	tEllipseCollectioncBs;eZdZejdd��Zd�Zed��ZRS(s8
    A collection of ellipses, drawn using splines.
    tpointscKs�tj||�dtj|�j�|_dtj|�j�|_tj|�j�tjd|_||_	|j
tj��g|_
tjj�g|_dS(s�
        *widths*: sequence
            lengths of first axes (e.g., major axis lengths)

        *heights*: sequence
            lengths of second axes

        *angles*: sequence
            angles of first axes, degrees CCW from the X-axis

        *units*: ['points' | 'inches' | 'dots' | 'width' | 'height'
                        | 'x' | 'y' | 'xy']
            units in which majors and minors are given; 'width' and 'height'
            refer to the dimensions of the axes, while 'x' and 'y'
            refer to the *offsets* data units. 'xy' differs from all
            others in that the angle as plotted varies with the
            aspect ratio, and equals the specified angle only when
            the aspect ratio is unity.  Hence it behaves the same
            as the :class:`~matplotlib.patches.Ellipse` with
            axes.transData as its transform.

        Additional kwargs inherited from the base :class:`Collection`:

        %(Collection)s
        g�?g�f@N(RRRRtravelt_widthst_heightsR�t_anglest_unitsR�RHRIR7R>RRRR(RtwidthstheightstanglestunitsR)((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�s#		c
Cs�g|_|j}|j}|jdkr3d}n�|jdkr[|jj|jj}n�|jdkr�|jj|jj}n�|jdkr�|j}n�|jdkr�|jd}ng|jdkr�|jj}nI|jd	kr�|jj}n+|jd
krd}nt	d|j��t
j}xbt|j
|j|j�D]E\}}}|�j||||�j|�}|jj|�qIW|jdkr�|jj�j�j�}	d
|	dd�dd�f<|j||	��ndS(sB
        Calculate transforms immediately before drawing.
        R�iRrRstinchesRgR@twidththeighttdotsg�?sunrecognized units: %siNi(R7taxesR�RRKR
tviewLimRR�R.RHR�RSRRRR�R�RQRBR<t
get_matrixtcopyR�(
Rtaxtfigtsct_affineRrRstattranstm((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt_set_transforms�s8						+&cCs|j�tj||�dS(N(RRRl(RRJ((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRl�s
(	R\R�R�RR�RRRRl(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�s
#	%tPatchCollectioncBs#eZdZed�Zd�ZRS(s�
    A generic collection of patches.

    This makes it easier to assign a color map to a heterogeneous
    collection of patches.

    This also may improve plotting speed, since PatchCollection will
    draw faster than a large number of patches.
    cKs�|r�d�}g|D]}||�^q}g|D]}|j�^q5}g|D]}|j�^qT}g|D]}|j�^qs}	g|D]}|j�^q�}
tj|d|d|d|d|	d|
�ntj||�|j|�dS(s}
        *patches*
            a sequence of Patch objects.  This list may include
            a heterogeneous assortment of different patch types.

        *match_original*
            If True, use the colors and linewidths of the original
            patches.  If False, new colors may be assigned by
            providing the standard collection arguments, facecolor,
            edgecolor, linewidths, norm or cmap.

        If any of *edgecolors*, *facecolors*, *linewidths*,
        *antialiaseds* are None, they default to their
        :data:`matplotlib.rcParams` patch setting, in sequence form.

        The use of :class:`~matplotlib.cm.ScalarMappable` is optional.
        If the :class:`~matplotlib.cm.ScalarMappable` matrix _A is not
        None (ie a call to set_array has been made), at draw time a
        call to scalar mappable will be made to set the face colors.
        cSs&|j�r|j�SddddgS(Ni(tget_fillRc(tpatch((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytdetermine_facecolors
RRR R!R"N(RdR�R�tget_antialiasedRRR6(Rtpatchestmatch_originalR)RRERRR R!R"((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�s 	
cCs;g|D]!}|j�j|j��^q}||_dS(N(R9ttransform_pathtget_pathR(RR!RERD((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR6)s+(R\R�R�RpRR6(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR�s	.tQuadMeshcBs_eZdZedd�Zd�Zd�Zed��Zd�Z	d�Z
ed��ZRS(	s�
    Class for the efficient drawing of a quadrilateral mesh.

    A quadrilateral mesh consists of a grid of vertices. The
    dimensions of this array are (*meshWidth* + 1, *meshHeight* +
    1). Each vertex in the mesh has a different set of "mesh
    coordinates" representing its position in the topology of the
    mesh. For any values (*m*, *n*) such that 0 <= *m* <= *meshWidth*
    and 0 <= *n* <= *meshHeight*, the vertices at mesh coordinates
    (*m*, *n*), (*m*, *n* + 1), (*m* + 1, *n* + 1), and (*m* + 1, *n*)
    form one of the quadrilaterals in the mesh. There are thus
    (*meshWidth* * *meshHeight*) quadrilaterals in the mesh.  The mesh
    need not be regular and the polygons need not be convex.

    A quadrilateral mesh is represented by a (2 x ((*meshWidth* + 1) *
    (*meshHeight* + 1))) numpy array *coordinates*, where each row is
    the *x* and *y* coordinates of one of the vertices.  To define the
    function that maps from a data point to its corresponding color,
    use the :meth:`set_cmap` method.  Each of these arrays is indexed in
    row-major order by the mesh coordinates of the vertex (or the mesh
    coordinates of the lower left vertex, in the case of the
    colors).

    For example, the first entry in *coordinates* is the
    coordinates of the vertex at mesh coordinates (0, 0), then the one
    at (0, 1), then at (0, 2) .. (0, meshWidth), (1, 0), (1, 1), and
    so on.

    *shading* may be 'flat', 'faceted' or 'gouraud'
    tflatcKs�tj||�||_||_||_||_||_||_tj	j
�|_|jj|j
|d|ddf��|jj
|d|ddf�|_tj|jtj�|_dS(Nii(RRt
_meshWidtht_meshHeightt_coordinatest
_showedgest_antialiasedt_shadingRHtBboxtunitt_bboxtupdate_from_data_xytreshapeRRR(Rt	meshWidtht
meshHeighttcoordinatest	showedgestantialiasedtshadingR)((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRNs						&cCs#|jdkr|j�n|jS(N(RRR6(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR4`s
cCs%|j|j|j|j�|_dS(N(tconvert_mesh_to_pathsR'R(R)R(R((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR6esc	Cs�tj}tj|�r$|j}n|}tj|dd�dd�f|dd�dd�f|dd�dd�f|dd�dd�f|dd�dd�ffdd�}|j||ddf�}g|D]}||�^q�S(s�
        Converts a given mesh into a sequence of
        :class:`matplotlib.path.Path` objects for easier rendering by
        backends that do not directly support quadmeshes.

        This function is primarily of use to backend implementers.
        ii����iNtaxisii(R>RRR�R�tdataRR�R1(R2R3R4RRR�RRr((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR8is			c
Cstj}tj|�r$|j}n|}|dd�dd�f}|dd�dd�f}|dd�dd�f}|dd�dd�f}	||||	d}
tj|||
|||
||	|
|	||
fdd�}|j||dd	df�}|j�j|d|ddf�}|dd�dd�f}
|dd�dd�f}|dd�dd�f}|dd�dd�f}|
|||d}tj|
||||||||||
|fdd�}|j||dd	df�}||fS(
s�
        Converts a given mesh into a sequence of triangles, each point
        with its own color.  This is useful for experiments using
        `draw_qouraud_triangle`.
        ii����iNg@R9iii(	R>RRR�R�R:RR�R1Rc(RR2R3R4RRREtp_atp_btp_ctp_dtp_centert	trianglesR�tc_atc_btc_ctc_dtc_centerR�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pytconvert_mesh_to_triangles�s<					 &				 cCs|jS(N(R/(RRB((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRG�scCsJ|j�sdS|j|jj�|j�}|j}|j}|j�r�t|j�r�|j	|jd �}|j
|jd �}t||�}q�ntj
|tj�}|jd�r�|j�n|js:|jj|jjd|jjddf�}|j|�}|j|jj�}tj�}n	|j}|jsj|j|�}|j�}n|j�}|j|�|j|j�d�|jdkr�|j|j |j!|�\}	}
|j"||	|
|j#��n@|j$||j#�|j |j!||||j%�|j&|j'�
|j(�|j)|jj�dS(NiiRitgouraud(*RYRZR[R\R9RRRMRRORPRSRRRtcheck_updateR]R:R)R1RRCRHRIR=R<R^R_RR�R,RFR'R(tdraw_gouraud_trianglesR@tdraw_quad_meshRcR+R*RiRj(RRJRCR$R#RVRWR4RkR@R�((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyRl�sN		
		
		

(
R\R�R�R�RR4R6R�R8RFRGRRl(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyR%/s			,	(/R�R�tnumpyRtnumpy.maR�t
matplotlibR}tmatplotlib.cbookR,tmatplotlib.colorsR�R�t
matplotlib.cmRRtmatplotlib.transformsRHtmatplotlib.artistRRtmatplotlib.backend_basesR�tmatplotlib.pathRUR>tmatplotlib.mlabR�RRRtinterpdRR�R�R�R�R�R�R�R�RRR%tkwdoctpatchstrtk(((sI/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/collections.pyt<module>
sH��=*A� R?�