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: //opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyc
�
�)�Uc@ s�ddlmZddlZddlZddlZddljZddlmZmZddl	m
Z
mZmZm
Z
ddlmZd�Zdefd��YZd	fd
��YZed�ZeZd�Zd
�Zejjdee��dS(i����(tdivisionN(t	docstringtrcParams(tBboxtIdentityTransformtTransformedBboxtTransformedPath(tPathc sXd��d�����fd�}�j|_�j|_�j|_t|_|S(s-
    Decorator for Artist.draw method. Provides routines
    that run before and after the draw call. The before and after functions
    are useful for changing artist-dependant renderer attributes or making
    other setup function calls, such as starting and flushing a mixed-mode
    renderer.
    cS s<|j�r|j�n|j�dk	r8|j�ndS(N(tget_rasterizedtstart_rasterizingtget_agg_filtertNonetstart_filter(tartisttrenderer((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytbefore$s
cS sE|j�dk	r(|j|j��n|j�rA|j�ndS(N(R
Rtstop_filterRtstop_rasterizing(R
R((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytafter,sc s1�||��||||��||�dS(N((R
Rtargstkwargs(RRtdraw(sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytdraw_wrapper5s
(t__name__t__dict__t__doc__tTruet_supports_rasterization(RR((RRRsD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytallow_rasterizations				tArtistcB s<eZdZdZdZd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d �Z"d!�Z#d"�Z$d?d#�Z&d$�Z'd%�Z(d&�Z)d'�Z*d(�Z+d)�Z,d*�Z-d+�Z.d,�Z/d-�Z0d.�Z1d/�Z2d0�Z3d1�Z4d2�Z5d3�Z6d4�Z7d5�Z8d6�Z9d7�Z:d8�Z;d9�Z<d:�Z=d;�Z>d<�Z?d=�Z@d?d>�ZARS(@sW
    Abstract base class for someone who renders into a
    :class:`FigureCanvas`.
    RicC s�d|_d|_t|_t|_t|_d|_d|_	d|_
t|_t|_d|_
d|_d|_d|_d|_t|_d|_i|_d|_d|_d|_d|_t|_t|_d|_dS(Nti(Rtfiguret
_transformtFalset
_transformSetRt_visiblet	_animatedt_alphatclipboxt	_clippatht_clipont_lodt_labelt_pickert	_containst_rasterizedt_agg_filterteventsont_oidt_propobserverstaxest_remove_methodt_urlt_gidtx_isdataty_isdatat_snap(tself((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt__init__Js2																								cC s/|jdkr|j|�ntd��dS(s
        Remove the artist from the figure if possible.  The effect
        will not be visible until the figure is redrawn, e.g., with
        :meth:`matplotlib.axes.Axes.draw_idle`.  Call
        :meth:`matplotlib.axes.Axes.relim` to update the axes limits
        if desired.

        Note: :meth:`~matplotlib.axes.Axes.relim` will not see
        collections even if the collection was added to axes with
        *autolim* = True.

        Note: there is no support for removing the artist's legend entry.
        scannot remove artistN(R3RtNotImplementedError(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytremovegscC sD|j}|dks$|jdkr(tS|jj�pC|jj�S(s5Return *True* if units are set on the *x* or *y* axesN(R2RtxaxisR!t
have_unitstyaxis(R9tax((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR>�s	cC sAt|dd�}|dks-|jdkr1|S|jj|�S(sjFor artists in an axes, if the xaxis has units support,
        convert *x* using xaxis unit type
        R2N(tgetattrRR=t
convert_units(R9txR@((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytconvert_xunits�scC sAt|dd�}|dks-|jdkr1|S|jj|�S(sjFor artists in an axes, if the yaxis has units support,
        convert *y* using yaxis unit type
        R2N(RARR?RB(R9tyR@((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytconvert_yunits�scC s
||_dS(s�
        Set the :class:`~matplotlib.axes.Axes` instance in which the
        artist resides, if any.

        ACCEPTS: an :class:`~matplotlib.axes.Axes` instance
        N(R2(R9R2((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_axes�scC s|jS(sm
        Return the :class:`~matplotlib.axes.Axes` instance the artist
        resides in, or *None*
        (R2(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_axes�scC s)|j}||j|<|jd7_|S(s�
        Adds a callback function that will be called whenever one of
        the :class:`Artist`'s properties changes.

        Returns an *id* that is useful for removing the callback with
        :meth:`remove_callback` later.
        i(R0R1(R9tfunctoid((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytadd_callback�s	
cC s&y|j|=Wntk
r!nXdS(s�
        Remove a callback based on its *id*.

        .. seealso::

            :meth:`add_callback`
               For adding callbacks

        N(R1tKeyError(R9RJ((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytremove_callback�s

cC s.x'|jj�D]\}}||�qWdS(sg
        Fire an event when property changed, calling all of the
        registered callbacks.
        N(R1titems(R9RJRI((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytpchanged�scC s|jS(s[
        Returns *True* if :class:`Artist` has a transform explicitly
        set.
        (R"(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytis_transform_set�scC s ||_t|_|j�dS(s�
        Set the :class:`~matplotlib.transforms.Transform` instance
        used by this artist.

        ACCEPTS: :class:`~matplotlib.transforms.Transform` instance
        N(R RR"RO(R9tt((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt
set_transform�s		cC s%|jdkrt�|_n|jS(sl
        Return the :class:`~matplotlib.transforms.Transform`
        instance used by this artist.
        N(R RR(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt
get_transform�scC s�ddl}g}y/|j|�\}}|r@|j|�nWn|j�dG|jGHnXx*|j�D]}|j|j|��qnW|S(sX
        List the children of the artist which contain the mouse event *event*.
        i����Nswhile checking(t	tracebacktcontainstappendt	print_exct	__class__tget_childrentextendthitlist(R9teventRTtLt	hascursortinfota((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR[�s
cC sgS(sd
        Return a list of the child :class:`Artist`s this
        :class:`Artist` contains.
        ((R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyRY�scC s@t|j�r|j||�Stjd|jj�tifS(sTest whether the artist contains the mouse event.

        Returns the truth value and a dictionary of artist specific details of
        selection, such as which points are contained in the pick radius.  See
        individual artists for details.
        s'%s' needs 'contains' method(tcallableR,twarningstwarnRXRR!(R9t
mouseevent((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyRUscC s
||_dS(s�
        Replace the contains test used by this artist. The new picker
        should be a callable function which determines whether the
        artist is hit by the mouse event::

            hit, props = picker(artist, mouseevent)

        If the mouse event is over the artist, return *hit* = *True*
        and *props* is a dictionary of properties you want returned
        with the contains test.

        ACCEPTS: a callable function
        N(R,(R9tpicker((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_containsscC s|jS(sV
        Return the _contains test used by the artist, or *None* for default.
        (R,(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_contains scC s.|jdk	o-|jjdk	o-|jdk	S(s-Return *True* if :class:`Artist` is pickable.N(RRtcanvasR+(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytpickable&scC s�|j�rv|j�}t|�r<|||�\}}n|j|�\}}|rv|jjj|||�qvnxT|j�D]F}t|dd�}|j
dks�|j
|kr�|j|�q�q�WdS(s�
        call signature::

          pick(mouseevent)

        each child artist will fire a pick event if *mouseevent* is over
        the artist and the artist has picker set
        R2N(Rit
get_pickerRaRURRht
pick_eventRYRARtinaxestpick(R9RdRetinsidetpropR`R@((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyRm,s
cC s
||_dS(s�
        Set the epsilon for picking used by this artist

        *picker* can be one of the following:

          * *None*: picking is disabled for this artist (default)

          * A boolean: if *True* then picking will be enabled and the
            artist will fire a pick event if the mouse event is over
            the artist

          * A float: if picker is a number it is interpreted as an
            epsilon tolerance in points and the artist will fire
            off an event if it's data is within epsilon of the mouse
            event.  For some artists like lines and patch collections,
            the artist may provide additional data to the pick event
            that is generated, e.g. the indices of the data within
            epsilon of the pick event

          * A function: if picker is callable, it is a user supplied
            function which determines whether the artist is hit by the
            mouse event::

              hit, props = picker(artist, mouseevent)

            to determine the hit test.  if the mouse event is over the
            artist, return *hit=True* and props is a dictionary of
            properties you want added to the PickEvent attributes.

        ACCEPTS: [None|float|boolean|callable]
        N(R+(R9Re((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt
set_pickerJs cC s|jS(s,Return the picker object used by this artist(R+(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyRjlscC s
|jdk	S(si
        Returns True if the artist is assigned to a
        :class:`~matplotlib.figure.Figure`.
        N(RR(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt
is_figure_setpscC s|jS(s!
        Returns the url
        (R4(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_urlwscC s
||_dS(sL
        Sets the url for the artist

        ACCEPTS: a url string
        N(R4(R9turl((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_url}scC s|jS(s&
        Returns the group id
        (R5(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_gid�scC s
||_dS(sS
        Sets the (group) id for the artist

        ACCEPTS: an id string
        N(R5(R9tgid((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_gid�scC stdr|jStSdS(sS
        Returns the snap setting which may be:

          * True: snap vertices to the nearest pixel center

          * False: leave vertices as-is

          * None: (auto) If the path contains only rectilinear line
            segments, round to the nearest pixel center

        Only supported by the Agg and MacOSX backends.
        s	path.snapN(RR8R!(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_snap�s
cC s
||_dS(sP
        Sets the snap setting which may be:

          * True: snap vertices to the nearest pixel center

          * False: leave vertices as-is

          * None: (auto) If the path contains only rectilinear line
            segments, round to the nearest pixel center

        Only supported by the Agg and MacOSX backends.
        N(R8(R9tsnap((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_snap�s
cC s|jS(sg
        Return the :class:`~matplotlib.figure.Figure` instance the
        artist belongs to.
        (R(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt
get_figure�scC s||_|j�dS(s�
        Set the :class:`~matplotlib.figure.Figure` instance the artist
        belongs to.

        ACCEPTS: a :class:`matplotlib.figure.Figure` instance
        N(RRO(R9tfig((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt
set_figure�s	cC s||_|j�dS(s�
        Set the artist's clip :class:`~matplotlib.transforms.Bbox`.

        ACCEPTS: a :class:`matplotlib.transforms.Bbox` instance
        N(R&RO(R9R&((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_clip_box�s	cC s_ddlm}m}t}|dkr�t||�rgttj�|j	��|_
d|_t}q�t||�r�t
|j�|j	��|_t}q�t|t�r�|\}}q�n|dkr�d|_t}nKt|t�rt
||�|_t}n!t|t
�r'||_t}n|sQt|�Gt|�GHtd��n|j�dS(s
        Set the artist's clip path, which may be:

          * a :class:`~matplotlib.patches.Patch` (or subclass) instance

          * a :class:`~matplotlib.path.Path` instance, in which case
             an optional :class:`~matplotlib.transforms.Transform`
             instance may be provided, which will be applied to the
             path before using it for clipping.

          * *None*, to remove the clipping path

        For efficiency, if the path happens to be an axis-aligned
        rectangle, this method will set the clipping box to the
        corresponding rectangle and set the clipping path to *None*.

        ACCEPTS: [ (:class:`~matplotlib.path.Path`,
        :class:`~matplotlib.transforms.Transform`) |
        :class:`~matplotlib.patches.Patch` | None ]
        i����(tPatcht	Rectangles"Invalid arguments to set_clip_pathN(tpatchesRR�R!Rt
isinstanceRRtunitRSR&R'RRtget_pathttupleRttypet	TypeErrorRO(R9tpatht	transformRR�tsuccess((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt
set_clip_path�s6									cC s|jS(sb
        Return the alpha value used for blending - not supported on all
        backends
        (R%(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt	get_alphascC s|jS(sReturn the artist's visiblity(R#(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_visiblescC s|jS(s"Return the artist's animated state(R$(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_animatedscC s|jS(s#Return whether artist uses clipping(R((R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_clip_onscC s|jS(sReturn artist clipbox(R&(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_clip_boxscC s|jS(sReturn artist clip path(R'(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt
get_clip_pathscC s |jdk	r|jj�SdS(s�
        Return the clip path with the non-affine part of its
        transformation applied, and the remaining affine part of its
        transformation.
        N(NN(R'Rtget_transformed_path_and_affine(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt$get_transformed_clip_path_and_affines
cC s||_|j�dS(sT
        Set whether artist uses clipping.

        ACCEPTS: [True | False]
        N(R(RO(R9tb((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_clip_on)s	cC s\|jr>|jdk	r+|j|j�n|j|j�n|jd�|jd�dS(s Set the clip properly for the gcN(R(R&Rtset_clip_rectangleR�R'(R9tgc((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt_set_gc_clip2s	
cC s|jS(s-return True if the artist is to be rasterized(R-(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR<scC s:|r-t|jd�r-tjd|�n||_dS(s�
        Force rasterized (bitmap) drawing in vector backend output.

        Defaults to None, which implies the backend's default behavior

        ACCEPTS: [True | False | None]
        Rs%Rasterization of '%s' will be ignoredN(thasattrRRbRcR-(R9t
rasterized((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_rasterized@scC s|jS(s0return filter function to be used for agg filter(R.(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR
MscC s
||_dS(s*
        set agg_filter fuction.

        N(R.(R9tfilter_func((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_agg_filterQscO s|j�sdSdS(sDerived classes drawing methodN(R�(R9RRR((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyRXscC s||_|j�dS(s�
        Set the alpha value used for blending - not supported on
        all backends.

        ACCEPTS: float (0.0 transparent through 1.0 opaque)
        N(R%RO(R9talpha((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt	set_alpha\s	cC s||_|j�dS(s�
        Set Level of Detail on or off.  If on, the artists may examine
        things like the pixel width of the axes and draw a subset of
        their contents accordingly

        ACCEPTS: [True | False]
        N(R)RO(R9ton((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_lodfs	cC s||_|j�dS(sN
        Set the artist's visiblity.

        ACCEPTS: [True | False]
        N(R#RO(R9R�((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_visibleqs	cC s||_|j�dS(sT
        Set the artist's animation state.

        ACCEPTS: [True | False]
        N(R$RO(R9R�((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset_animated{s	cC s�|j}t|_t}xl|j�D]^\}}t|d|d�}|dks`t|�rstd|��n||�t}q%W||_|r�|j�ndS(sc
        Update the properties of this :class:`Artist` from the
        dictionary *prop*.
        tset_sUnknown property %sN(	R/R!RNRARRatAttributeErrorRRO(R9tpropststoretchangedtktvRI((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytupdate�s		

	cC s|jS(sC
        Get the label used for this artist in the legend.
        (R*(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt	get_label�scC s||_|j�dS(sT
        Set the label to *s* for auto legend.

        ACCEPTS: any string
        N(R*RO(R9ts((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt	set_label�s	cC s|jS(s6
        Return the :class:`Artist`'s zorder.
        (tzorder(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt
get_zorder�scC s||_|j�dS(s�
        Set the zorder for the artist.  Artists with lower zorder
        values are drawn first.

        ACCEPTS: any number
        N(R�RO(R9tlevel((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt
set_zorder�s	cC sz|j|_|j|_|j|_|j|_|j|_|j|_|j|_|j|_|j|_|j	�dS(s'Copy properties from *other* to *self*.N(
R R"R#R%R&R(R'R)R*RO(R9tother((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytupdate_from�scC st|�j�S(sY
        return a dictionary mapping property name -> value for all Artist props
        (tArtistInspectort
properties(R9((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR��scK sbg}xU|j�D]G\}}|j�}d|}t||�}|j||�g�qW|S(sH
        A tkstyle set command, pass *kwargs* to set properties
        sset_%s(RNtlowerRARZ(R9RtretR�R�tfuncNameRI((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytset�s
c s��dkrd�}nEtj�t�r<�fd�}n!t��rQ�}ntd��g}xe|j�D]W}||�r�|j|�n|jg|j	|�D]}||�r�|^q��qpW||�r�|j|�n|S(s�
        pyplot signature:
          findobj(o=gcf(), match=None)

        Recursively find all :class:matplotlib.artist.Artist instances
        contained in self.

        *match* can be

          - None: return all objects contained in artist (including artist)

          - function with signature ``boolean = match(artist)`` used to filter matches

          - class instance: eg Line2D.  Only return artists of class type

        .. plot:: mpl_examples/pylab_examples/findobj_demo.py
        cS stS(N(R(RC((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt	matchfunc�sc s
t|��S(N(R�(RC(tmatch(sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR��ssGmatch must be None, an matplotlib.artist.Artist subclass, or a callableN(
Rtcbooktissubclass_safeRRat
ValueErrorRYRVRZtfindobj(R9R�R�tartiststctthisc((R�sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR��s	9N(BRt
__module__RtanameR�R:R<R>RDRFRGRHRKRMRORPRRRSR[RYRURfRgRiRmRpRjRqRrRtRuRwRxRzR{R}R~RR�R�R�R�R�R�R�R�R�R�RR�R
R�RR�R�R�R�R�R�R�R�R�R�R�R�R�(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyRBs~				
					
	
													"											
		5							
			
		
				
		
							
			R�cB s�eZdZd�Zd�Zejd�Zd�Zd�Z	d�Z
d�Zd�Zd	�Z
dd
d�Zdd
d�Zd
�Zd�Zdd�ZRS(s�
    A helper class to inspect an :class:`~matplotlib.artist.Artist`
    and return information about it's settable properties and their
    current values.
    cC sktj|�r(t|�r(|d}n||_t|t�sOt|�}n||_|j�|_dS(s?
        Initialize the artist inspector with an
        :class:`~matplotlib.artist.Artist` or sequence of
        :class:`Artists`.  If a sequence is used, we assume it is a
        homogeneous sequence (all :class:`Artists` are of the same
        type) and it is your responsibility to make sure this is so.
        iN(	R�titerabletlentoorigR�R�totget_aliasestaliasd(R9R�((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR:s
		cC s�gt|j�D]B}|jd�s4|jd�rtt|j|��r|^q}i}xf|D]^}t|j|�}|j|�s�qen|j}|d}d|j|di�|d<qeW|S(s�
        Get a dict mapping *fullname* -> *alias* for each *alias* in
        the :class:`~matplotlib.artist.ArtistInspector`.

        Eg., for lines::

          {'markerfacecolor': 'mfc',
           'linewidth'      : 'lw',
          }

        R�tget_i
iN(	tdirR�t
startswithRaRAtis_aliasRRt
setdefault(R9tnametnamestaliasesRIRtfullname((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR�s$
	
"s*\n\s*ACCEPTS:\s*((?:.|\n)*?)(?:$|(?:\n\n))cC s�d|}t|j|�s8td|j|f��nt|j|�}|j}|dkrcdS|jd�rvdS|jj|�}|dk	r�|j	d�j
dd�SdS(	sD
        Get the legal arguments for the setter associated with *attr*.

        This is done by querying the docstring of the function *set_attr*
        for a line that begins with ACCEPTS:

        Eg., for a line linestyle, return
        "[ ``'-'`` | ``'--'`` | ``'-.'`` | ``':'`` | ``'steps'`` | ``'None'`` ]"
        sset_%ss%s has no function %stunknowns
alias for is
t N(R�R�R�RARRR�t_get_valid_values_regextsearchtgrouptreplace(R9tattrR�RIRR�((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_valid_values5s
	cC s�g}x�t|j�D]�}|jd�s1qnt|j|�}t|�sUqn|}|j|�rpqn|jjd|jj}x>|jj�D]-}||j	kr�|jd|j}Pq�q�W|j
|d|d|f�qW|S(s�
        Get the attribute strings and a full path to where the setter
        is defined for all setters in an object.
        R�t.i(R�R�R�RARaR�R�RtmroRRV(R9tsettersR�R�RItsource_classtcls((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt_get_setters_and_targetsPs"#cC s#g|j�D]\}}|^q
S(s�
        Get the attribute strings with setters for object.  Eg., for a line,
        return ``['markerfacecolor', 'linewidth', ....]``.
        (R�(R9Rottarget((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytget_settersescC s&|j}|dkrtS|jd�S(s^
        Return *True* if method object *o* is an alias for another
        function.
        s
alias for N(RRR!R�(R9R�tds((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR�ms	cC sL||jkrD|djg|j|j�D]}d|^q,�S|SdS(s
        return 'PROPNAME or alias' if *s* has an alias, else return
        PROPNAME.

        E.g. for the line markerfacecolor property, which has an
        alias, return 'markerfacecolor or mfc' and for the transform
        property, which does not, return 'transform'
        Rs or %sN(R�tjointkeys(R9R�RC((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytaliased_namevs
5cC s\||jkrEdjg|j|j�D]}d|^q)�}nd}d|||fS(s-
        return 'PROPNAME or alias' if *s* has an alias, else return
        PROPNAME formatted for ReST

        E.g. for the line markerfacecolor property, which has an
        alias, return 'markerfacecolor or mfc' and for the transform
        property, which does not, return 'transform'
        Rs or %ss:meth:`%s <%s>`%s(R�R�R�(R9R�R�RCR�((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytaliased_name_rest�s
6ic	C s�|rd|}nd}|dk	rE|j|�}d|||fS|j�}|j�g}xL|D]D\}}|j|�}|j|�}|jd|||f�qhW|S(s
        If *prop* is *None*, return a list of strings of all settable properies
        and their valid values.

        If *prop* is not *None*, it is a valid property name and that
        property will be returned as a string of property : valid
        values.
        R�Rs%s%s: %sN(RR�R�tsortR�RV(	R9RotleadingspacetpadtacceptstattrstlinesR�R�((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytpprint_setters�s	

cC s+|rd|}nd}|d	k	rE|j|�}d|||fS|j�}|j�g}g|D]\}}|j||�^qh}g|D]\}}|j|�^q�}tg|D]}	t|	�^q��}
tg|D]}t|�^q��}|d|
dd|}
|jd�|j|
�|j|dj|
d�dj|��|j|
�|j	gt
||�D]0\}	}||	j|
d�|j|�^q��|j|
�|jd�|SxO|D]G\}}|j|�}|j||�}|jd|||f�q�W|S(
s.
        If *prop* is *None*, return a list of strings of all settable properies
        and their valid values.  Format the output for ReST

        If *prop* is not *None*, it is a valid property name and that
        property will be returned as a string of property : valid
        values.
        R�Rs%s%s: %st=s   tPropertyitDescriptionN(RR�R�R�R�tmaxR�RVtljustRZtzip(R9RoR�R�R�R�R�R�R�tntcol0_lenR`tcol1_lenttable_formatstrR�R�((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytpprint_setters_rest�s:	

+(%%


	D

cC s�|j}gt|�D]0}|jd�rtt||��r|^q}|j�t�}xZ|D]R}t||�}|j|�r�qfny
|�}Wn
qfqfX|||d<qfW|S(sD
        return a dictionary mapping property name -> value
        R�i(R�R�R�RaRAR�tdictR�(R9R�R�tgetterstdRItval((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR��s 	!
	

cC s�|j�}|j�}|j�g}x�|D]�}||}t|dd�d	kr�t|�dkr�t|d �d}nt|�}|jdd�}t|�dkr�|d d}n|j|�}|jd||f�q/W|S(
sJ
        Return the getters and actual values as list of strings.
        tshapeis...s
R�i2s    %s = %s(((	R�R�R�RAR�tstrR�R�RV(R9R�R�R�R�R�R�((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytpprint_getters�s


*c s��dkrd�}nBt�t�r9�fd�}n!t��rNt}ntd��g}xe|j�D]W}||�r�|j|�n|jg|j	|�D]}||�r�|^q��qmW||�r�|j|�n|S(s>
        Recursively find all :class:`matplotlib.artist.Artist`
        instances contained in *self*.

        If *match* is not None, it can be

          - function with signature ``boolean = match(artist)``

          - class instance: eg :class:`~matplotlib.lines.Line2D`

        used to filter matches.
        cS stS(N(R(RC((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR�#sc s
t|��S(N(R�(RC(R�(sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR�%ssGmatch must be None, an matplotlib.artist.Artist subclass, or a callableN(
Rt
issubclassRRaRIR�RYRVRZR�(R9R�R�R�R�R�((R�sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR�s	9N(RR�RR:R�tretcompileR�R�R�R�R�R�R�RR�R�R�RR�(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyR�s									3		cC sP|dkr6t|�}|j�}dj|�GHdSt|d|�}|�S(sG
    Return the value of object's property.  *property* is an optional string
    for the property you want to return

    Example usage::

        getp(obj)  # get all the object properties
        getp(obj, 'linestyle')  # get the linestyle property

    *obj* is a :class:`Artist` instance, eg
    :class:`~matplotllib.lines.Line2D` or an instance of a
    :class:`~matplotlib.axes.Axes` or :class:`matplotlib.text.Text`.
    If the *property* is 'somename', this function returns

      obj.get_somename()

    :func:`getp` can be used to query all the gettable properties with
    ``getp(obj)``. Many properties have aliases for shorter typing, e.g.
    'lw' is an alias for 'linewidth'.  In the output, aliases and full
    property names will be listed as:

      property or alias = value

    e.g.:

      linewidth or lw = 2
    s
NR�(RR�RR�RA(tobjtpropertytinspR�RI((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytgetp=scO s�t|�}t|�dkrHt|�dkrHdj|j��GHdSt|�dkr�t|�dkr�|jd|d�GHdStj|�s�|g}ntj|�}t|�dr�td��ng}xCtdt|�dd�D]%}|j	||||df�q�W|j
|j��g}x`|D]X}xO|D]G\}	}
|	j�}	d|	}t
||�}|j
||
�g�qGWq:Wgtj|�D]}
|
^q�S(	s�
    matplotlib supports the use of :func:`setp` ("set property") and
    :func:`getp` to set and get object properties, as well as to do
    introspection on the object.  For example, to set the linestyle of a
    line to be dashed, you can do::

      >>> line, = plot([1,2,3])
      >>> setp(line, linestyle='--')

    If you want to know the valid types of arguments, you can provide the
    name of the property you want to set without a value::

      >>> setp(line, 'linestyle')
          linestyle: [ '-' | '--' | '-.' | ':' | 'steps' | 'None' ]

    If you want to see all the properties that can be set, and their
    possible values, you can do::

      >>> setp(line)
          ... long output listing omitted

    :func:`setp` operates on a single instance or a list of instances.
    If you are in query mode introspecting the possible values, only
    the first instance in the sequence is used.  When actually setting
    values, all the instances will be set.  E.g., suppose you have a
    list of two lines, the following will make both lines thicker and
    red::

      >>> x = arange(0,1.0,0.01)
      >>> y1 = sin(2*pi*x)
      >>> y2 = sin(4*pi*x)
      >>> lines = plot(x, y1, x, y2)
      >>> setp(lines, linewidth=2, color='r')

    :func:`setp` works with the MATLAB style string/value pairs or
    with python kwargs.  For example, the following are equivalent::

      >>> setp(lines, 'linewidth', 2, 'color', r')  # MATLAB style

      >>> setp(lines, linewidth=2, color='r')       # python style
    is
NiRois(The set args must be string, value pairssset_%s(R�R�R�R�R�R�tflattenR�trangeRVRZRNR�RA(RRRRtobjstfuncvalstiR�R�R�R�R�RIRC((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytsetpgs0+$$##

cC sUtjd}|r2djt|�jdd��Sdjt|�jdd��SdS(Nsdocstring.hardcopys
R�i(t
matplotlibRR�R�R�R�(R`thardcopy((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pytkwdoc�s
(t
__future__RRRbRtmatplotlib.cbookR�RRt
transformsRRRRR�RRtobjectRR�RR	tgetRRtinterpdR�(((sD/opt/alt/python27/lib64/python2.7/site-packages/matplotlib/artist.pyt<module>s""	&����9(	L