
    h=                        S SK Jr  S SKrS SKJrJrJr  S SKrS SKJrJ	r	  S SK
r
S SKJrJr  S SKrS SKrS SKrS SKrS SKrSSKJrJr  SSKJr  SS	KJrJrJrJrJrJ r J!r!  \
RD                  " \#5      r$S
 r%S r&S r'S r(\" SS5      r) " S S5      r*\*" 5       r+ " S S5      r,S r- " S S5      r.SS jr/\/r0SS.S jr1S r2\,Rg                  5         g)    )
namedtupleN)cachereducewraps)	Signature	Parameter)NumberReal   )_apicbook)Path)BboxBaseBboxIdentityTransform	TransformTransformedBboxTransformedPatchPathTransformedPathc                 >   ^  [        T 5      U 4S j5       nSUl        U$ )Nc                    > UR                   S:X  a(  UR                  (       a  UR                  5         SUl        T" X/UQ70 UD6$ )Nr   F)_raster_depth_rasterizingstop_rasterizing)artistrendererargskwargsdraws       C/var/www/html/env/lib/python3.13/site-packages/matplotlib/artist.pydraw_wrapper,_prevent_rasterization.<locals>.draw_wrapper   sD    !!Q&8+@+@ %%'$)H!F6t6v66    Fr   _supports_rasterizationr   r!   s   ` r    _prevent_rasterizationr'      s+     4[7 7 ,1L(r#   c                 >   ^  [        T 5      U 4S j5       nSUl        U$ )a  
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-dependent renderer attributes or making
other setup function calls, such as starting and flushing a mixed-mode
renderer.
c                 l  >  U R                  5       (       aN  UR                  S:X  a(  UR                  (       d  UR                  5         SUl        U=R                  S-  sl        O8UR                  S:X  a(  UR                  (       a  UR	                  5         SUl        U R                  5       b  UR                  5         T" X5      U R                  5       b  UR                  U R                  5       5        U R                  5       (       a  U=R                  S-  sl        UR                  (       aJ  U R                  SS9=n(       a3  UR                  (       a!  UR	                  5         UR                  5         $ $ $ $ ! U R                  5       b  UR                  U R                  5       5        U R                  5       (       a  U=R                  S-  sl        UR                  (       aJ  U R                  SS9=n(       a3  UR                  (       a!  UR	                  5         UR                  5         f f f f = f)Nr   Tr   Froot)
get_rasterizedr   r   start_rasterizingr   get_agg_filterstart_filterstop_filter
get_figuresuppressComposite)r   r   figr   s      r    r!   )allow_rasterization.<locals>.draw_wrapper5   s   	-$$&&))Q.x7L7L..0,0H)&&!+&))Q.83H3H --/,1H)$$&2%%')$$&2$$V%:%:%<=$$&&&&!+&%%&2C2C2C2N+N3+N))))+**, * ,O%	 $$&2$$V%:%:%<=$$&&&&!+&%%&2C2C2C2N+N3+N))))+**, * ,O%s   CE< <B7H3Tr$   r&   s   ` r    allow_rasterizationr5   ,   s+     4[- -: ,0L(r#   c                 0   ^  [        T 5      U 4S j5       nU$ )z
Decorator for Artist.draw method. Needed on the outermost artist, i.e.
Figure, to finish up if the render is still in rasterized mode.
c                 p   > T" X/UQ70 UD6nUR                   (       a  UR                  5         SUl         U$ )NF)r   r   )r   r   r   r   resultr   s        r    r!   -_finalize_rasterization.<locals>.draw_wrapper\   s9    f888  %%'$)H!r#   )r   r&   s   ` r    _finalize_rasterizationr:   W   s#    
 4[  r#   c                 H    U R                   (       a  XR                   l        g g N)axesstaleselfvals     r    _stale_axes_callbackrB   f   s    yy		 r#   _XYPairzx yc                       \ rS rSrS rSrg)_Unsetn   c                     g)Nz<UNSET> r@   s    r    __repr___Unset.__repr__o   s    r#   rH   N)__name__
__module____qualname____firstlineno__rJ   __static_attributes__rH   r#   r    rE   rE   n   s    r#   rE   c                      \ rS rSrSrSrS r/ SQr\S 5       r	S r
S rS	 rS
 rS rS r\S 5       r\R$                  S 5       r\S 5       r\R$                  S 5       rSXS jrSXS jrS rS rS rS rS rS rS rS rS rS rS r S r!S  r"S! r#S" r$S# r%S$ r&S% r'S& r(S' r)SYS( jr*S) r+S* r,SZS+ jr-S, r.\" \-\.S-S.9r/S/ r0SXS0 jr1S1 r2S2 r3S3 r4S4 r5S5 r6S6 r7S7 r8S8 r9S9 r:S: r;S; r<S< r=S= r>S> r?S? r@S@ rASA rBSB rCSC rDSD rESE rFSF rGSG rHSH rISI rJ\SJ 5       rKSK rLSL rMSM rNSN rOSO rPSP rQ\RR                  SQ 5       rTS[SR jrUSS rVST rWSU rXSV rY\" \X\Y5      rZSWr[g)\Artistt   z
Abstract base class for objects that render into a FigureCanvas.

Typically, all visible elements in a figure are subclasses of Artist.
r   c                 4   [        U R                  S5      (       d  [        U R                  5      U l        [        U R                  S5      (       d  g S U l        SU R                  l        U R
                   S3U R                  l        U R                  5         g )Nr%   _autogenerated_signaturec                 0    [         R                  " U 40 UD6$ r<   )rR   setr@   r   s     r    <lambda>*Artist.__init_subclass__.<locals>.<lambda>   s    D)CF)Cr#   rW   z.set)hasattrr   r'   rW   rL   rN   #_update_set_signature_and_docstring)clss    r    __init_subclass__Artist.__init_subclass__}   sx     sxx!:;;-chh7CH
 sww :;; C "%"2"2!348//1r#   )navigate_modefigure3d_propertiesc                    [        [        S[        R                  5      /[        U 5      R	                  5        Vs/ s H6  nU[
        R                  ;  d  M  [        U[        R                  [        S9PM8     snQ5      U R                  l
        SU R                  l        S[        U 5      -   U R                  l        gs  snf )z
Update the signature of the set function to list all properties
as keyword arguments.

Property aliases are not listed in the signature for brevity, but
are still accepted as keyword arguments.
r@   )defaultTz<Set multiple properties at once.

Supported properties are

N)r   r   POSITIONAL_OR_KEYWORDArtistInspectorget_settersrR   _PROPERTIES_EXCLUDED_FROM_SETKEYWORD_ONLY_UNSETrW   __signature__rU   kwdoc__doc__)r]   props     r    r\   *Artist._update_set_signature_and_docstring   s     !*vy>>? E*3/;;=D=4fBBB Gyy55vF=DE!F
 ,0(+Cj 	Ds   B>
!B>
c                 f   SU l         S U l        S U l        S U l        S U l        SU l        SU l        SU l        S U l        S U l	        S U l
        SU l        SU l        S U l        SU l        S U l        [!        U 5      R"                  [$        R"                  :g  U l        [(        R*                  " S/S9U l         S U l        S U l        S U l        S U l        S U l        [:        R<                  S   U l        [:        R<                  S   U l         [C        / / 5      U l"        SU l#        g ! [0         a     Nqf = f)NTF pchanged)signalszpath.sketchzpath.effects)$_stalestale_callback_axes_parent_figure
_transform_transformSet_visible	_animated_alphaclipbox	_clippath_clipon_label_picker_rasterized_agg_filtertypeget_cursor_datarR   
_mouseoverr   CallbackRegistry
_callbacksr=   AttributeError_remove_method_url_gid_snapmplrcParams_sketch_path_effectsrC   _sticky_edges
_in_layoutrI   s    r    __init__Artist.__init__   s   "
""  t*448N8NN00*F	DI #		
||M2 \\.9$R_  		s   7D# #
D0/D0c                 D    U R                   R                  5       nS US'   U$ )Nru   )__dict__copy)r@   ds     r    __getstate__Artist.__getstate__   s$    MM "
r#   c                 z   U R                   b  U R                  U 5        SU l        Sn[        U S5      (       aP  U R                  (       a?  U R                  R                  R                  U 5        SU R                  l        SU l        SnU R                  SS9=nb  U(       d  SUl        SU l        gg[        S5      e)a  
Remove the artist from the figure if possible.

The effect will not be visible until the figure is redrawn, e.g.,
with `.FigureCanvasBase.draw_idle`.  Call `~.axes.Axes.relim` to
update the Axes limits if desired.

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

Note: there is no support for removing the artist's legend entry.
NFr=   Tr*   zcannot remove artist)
r   ru   r[   r=   _mouseover_setdiscardr>   r1   rw   NotImplementedError)r@   _ax_flagr3   s      r    removeArtist.remove   s    $ *%"&DHtV$$		((006"&		 	E22? $CI&*# @ &&<==r#   c                     U R                   nU=(       a*    [        S UR                  R                  5        5       5      $ )z)Return whether units are set on any axis.c              3   @   #    U  H  oR                  5       v   M     g 7fr<   )
have_units).0axiss     r    	<genexpr>$Artist.have_units.<locals>.<genexpr>
  s     N8M//++8Ms   )r=   any	_axis_mapvalues)r@   axs     r    r   Artist.have_units  s.    YYNcN8K8K8MNNNr#   c                 v    [        U SS5      nUb  UR                  c  U$ UR                  R                  U5      $ )z
Convert *x* using the unit type of the xaxis.

If the artist is not contained in an Axes or if the xaxis does not
have units, *x* itself is returned.
r=   N)getattrxaxisconvert_units)r@   xr   s      r    convert_xunitsArtist.convert_xunits  :     T64(:)Hxx%%a((r#   c                 v    [        U SS5      nUb  UR                  c  U$ UR                  R                  U5      $ )z
Convert *y* using the unit type of the yaxis.

If the artist is not contained in an Axes or if the yaxis does not
have units, *y* itself is returned.
r=   N)r   yaxisr   )r@   yr   s      r    convert_yunitsArtist.convert_yunits  r   r#   c                     U R                   $ )z<The `~.axes.Axes` instance the artist resides in, or *None*.)rv   rI   s    r    r=   Artist.axes$  s     zzr#   c                     Ub'  U R                   b  XR                   :w  a  [        S5      eXl         Ub  XLa  [        U l        g g g )NzoCan not reset the Axes. You are probably trying to reuse an artist in more than one Axes which is not supported)rv   
ValueErrorrB   ru   )r@   new_axess     r    r=   r   )  sP     TZZ%;

* V W W
H$8"6D %9r#   c                     U R                   $ )zr
Whether the artist is 'stale' and needs to be re-drawn for the output
to match the internal state of the artist.
)rt   rI   s    r    r>   Artist.stale3  s     {{r#   c                     Xl         U R                  (       a  g U(       a   U R                  b  U R                  X5        g g g r<   )rt   r{   ru   r?   s     r    r>   r   ;  s6    
 >>4&&2* 33r#   Nc                 $    [        SS/SS//5      $ )a  
Get the artist's bounding box in display space.

The bounding box' width and height are nonnegative.

Subclasses should override for inclusion in the bounding box
"tight" calculation. Default is to return an empty bounding
box at 0, 0.

Be careful when using this function, the results will not update
if the artist window extent of the artist changes.  The extent
can change due to any changes in the transform stack, such as
changing the Axes limits, the figure size, or the canvas used
(as is done when saving a figure).  This can lead to unexpected
behavior where interactive figures will look fine on the screen,
but will save incorrectly.
r   )r   r@   r   s     r    get_window_extentArtist.get_window_extentH  s    $ aVaV$%%r#   c                 8   U R                  U5      nU R                  5       (       as  U R                  5       nUb  [        R                  " X#5      nU R                  5       nUb7  Ub4  UR                  5       n[        R                  " X$R                  5       5      nU$ )a  
Like `.Artist.get_window_extent`, but includes any clipping.

Parameters
----------
renderer : `~matplotlib.backend_bases.RendererBase` subclass, optional
    renderer that will be used to draw the figures (i.e.
    ``fig.canvas.get_renderer()``)

Returns
-------
`.Bbox` or None
    The enclosing bounding box (in figure pixel coordinates).
    Returns None if clipping results in no intersection.
)r   get_clip_onget_clip_boxr   intersectionget_clip_pathget_fully_transformed_pathget_extents)r@   r   bboxclip_box	clip_paths        r    get_tightbboxArtist.get_tightbbox\  s      %%h/((*H#((8**,I$)9%@@B	((/D/D/FGr#   c                 H   ^ ^ T R                   R                  SUU 4S j5      $ )a  
Add a callback function that will be called whenever one of the
`.Artist`'s properties changes.

Parameters
----------
func : callable
    The callback function. It must have the signature::

        def func(artist: Artist) -> Any

    where *artist* is the calling `.Artist`. Return values may exist
    but are ignored.

Returns
-------
int
    The observer id associated with the callback. This id can be
    used for removing the callback with `.remove_callback` later.

See Also
--------
remove_callback
rr   c                     > T " T5      $ r<   rH   )funcr@   s   r    rY   %Artist.add_callback.<locals>.<lambda>  s	    4:r#   )r   connect)r@   r   s   ``r    add_callbackArtist.add_callbackw  s    6 &&z3EFFr#   c                 :    U R                   R                  U5        g)zM
Remove a callback based on its observer id.

See Also
--------
add_callback
N)r   
disconnect)r@   oids     r    remove_callbackArtist.remove_callback  s     	""3'r#   c                 :    U R                   R                  S5        g)z
Call all of the registered callbacks.

This function is triggered internally when a property is changed.

See Also
--------
add_callback
remove_callback
rr   N)r   processrI   s    r    rr   Artist.pchanged  s     	
+r#   c                     U R                   $ )zt
Return whether the Artist has an explicitly set transform.

This is *True* after `.set_transform` has been called.
)ry   rI   s    r    is_transform_setArtist.is_transform_set  s     !!!r#   c                 L    Xl         SU l        U R                  5         SU l        g)zY
Set the artist transform.

Parameters
----------
t : `~matplotlib.transforms.Transform`
TN)rx   ry   rr   r>   )r@   ts     r    set_transformArtist.set_transform  s!     !
r#   c                 2   U R                   c  [        5       U l         U R                   $ [        U R                   [        5      (       dE  [	        U R                   S5      (       a*  U R                   R                  U R                  5      U l         U R                   $ )z5Return the `.Transform` instance used by this artist._as_mpl_transform)rx   r   
isinstancer   r[   r   r=   rI   s    r    get_transformArtist.get_transform  sk    ??"/1DO  T__i88$//+>??"oo??		JDOr#   c                     / $ )z9Return a list of the child `.Artist`\s of this `.Artist`.rH   rI   s    r    get_childrenArtist.get_children  s    	r#   c                     [        USS5      SL=(       a2    U R                  SS9=nSL=(       a    UR                  UR                  L$ )a  
Check whether an *event* occurred on a canvas other that this artist's canvas.

If this method returns True, the event definitely occurred on a different
canvas; if it returns False, either it occurred on the same canvas, or we may
not have enough information to know.

Subclasses should start their definition of `contains` as follows::

    if self._different_canvas(mouseevent):
        return False, {}
    # subclass-specific implementation follows
canvasNTr*   )r   r1   r   )r@   eventr3   s      r    _different_canvasArtist._different_canvas  sL     x.d: 3 OOO66StC3LL

2	4r#   c                 ^    [         R                  SU R                  R                  5        S0 4$ )a  
Test whether the artist contains the mouse event.

Parameters
----------
mouseevent : `~matplotlib.backend_bases.MouseEvent`

Returns
-------
contains : bool
    Whether any values are within the radius.
details : dict
    An artist-specific dictionary of details of the event context,
    such as which points are contained in the pick radius. See the
    individual Artist subclasses for details.
z%r needs 'contains' methodF)_logwarning	__class__rL   )r@   
mouseevents     r    containsArtist.contains  s'    " 	14>>3J3JKbyr#   c                 N    U R                  SS9SL=(       a    U R                  SL$ )zp
Return whether the artist is pickable.

See Also
--------
.Artist.set_picker, .Artist.get_picker, .Artist.pick
Fr*   N)r1   r   rI   s    r    pickableArtist.pickable  s(     E*$6S4<<t;SSr#   c                 $   SSK Jn  U R                  5       (       au  U R                  5       n[	        U5      (       a  U" X5      u  pEOU R                  U5      u  pEU(       a0  U" SU R                  SS9R                  X40 UD6R                  5         U R                  5        Hl  n[        USS5      n[        U[        R                  R                  5      (       d"  UR                  b  Ub  UR                  U:X  d  M[  UR!                  U5        Mn     g)z
Process a pick event.

Each child artist will fire a pick event if *mouseevent* is over
the artist and the artist has picker set.

See Also
--------
.Artist.set_picker, .Artist.get_picker, .Artist.pickable
r   )	PickEvent
pick_eventTr*   r=   N)backend_basesr  r   
get_pickercallabler   r1   r   _processr   r   r   r   ra   	SubFigureinaxespick)r@   r   r  pickerinsidern   ar   s           r    r
  Artist.pick  s     	-==??__&F%d7#}}Z8,T(B(I(I$4.244<HJ ""$AFD)B1cjj2233!((0BJ!((B. z" %r#   c                     Xl         g)a{  
Define the picking behavior of the artist.

Parameters
----------
picker : None or bool or float or callable
    This 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 its 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.
Nr   )r@   r  s     r    
set_pickerArtist.set_picker#  s
    B r#   c                     U R                   $ )z
Return the picking behavior of the artist.

The possible values are described in `.Artist.set_picker`.

See Also
--------
.Artist.set_picker, .Artist.pickable, .Artist.pick
r  rI   s    r    r  Artist.get_pickerF  s     ||r#   c                     U R                   $ )zReturn the url.r   rI   s    r    get_urlArtist.get_urlR      yyr#   c                     Xl         g)z>
Set the url for the artist.

Parameters
----------
url : str
Nr  )r@   urls     r    set_urlArtist.set_urlV  	     	r#   c                     U R                   $ )zReturn the group id.r   rI   s    r    get_gidArtist.get_gid`  r  r#   c                     Xl         g)zE
Set the (group) id for the artist.

Parameters
----------
gid : str
Nr   )r@   gids     r    set_gidArtist.set_gidd  r  r#   c                 L    [         R                  S   (       a  U R                  $ g)z8
Return the snap setting.

See `.set_snap` for details.
z	path.snapF)r   r   r   rI   s    r    get_snapArtist.get_snapn  s     <<$::r#   c                     Xl         SU l        g)aU  
Set the snapping behavior.

Snapping aligns positions with the pixel grid, which results in
clearer images. For example, if a black line of 1px width was
defined at a position in between two pixels, the resulting image
would contain the interpolated value of that line in the pixel grid,
which would be a grey value on both adjacent pixel positions. In
contrast, snapping will move the line to the nearest integer pixel
value, so that the resulting image will really contain a 1px wide
black line.

Snapping is currently only supported by the Agg and MacOSX backends.

Parameters
----------
snap : bool or None
    Possible values:

    - *True*: Snap vertices to the nearest pixel center.
    - *False*: Do not modify vertex positions.
    - *None*: (auto) If the path contains only rectilinear line
      segments, round to the nearest pixel center.
TN)r   r>   )r@   snaps     r    set_snapArtist.set_snapy  s    2 

r#   c                     U R                   $ )a  
Return the sketch parameters for the artist.

Returns
-------
tuple or None

    A 3-tuple with the following elements:

    - *scale*: The amplitude of the wiggle perpendicular to the
      source line.
    - *length*: The length of the wiggle along the line.
    - *randomness*: The scale factor by which the length is
      shrunken or expanded.

    Returns *None* if no sketch parameters were set.
)r   rI   s    r    get_sketch_paramsArtist.get_sketch_params  s    $ ||r#   c                 ^    Uc  SU l         OX=(       d    SU=(       d    S4U l         SU l        g)a  
Set the sketch parameters.

Parameters
----------
scale : float, optional
    The amplitude of the wiggle perpendicular to the source
    line, in pixels.  If scale is `None`, or not provided, no
    sketch filter will be provided.
length : float, optional
     The length of the wiggle along the line, in pixels
     (default 128.0)
randomness : float, optional
    The scale factor by which the length is shrunken or
    expanded (default 16.0)

    The PGF backend uses this argument as an RNG seed and not as
    described above. Using the same seed yields the same random shape.

    .. ACCEPTS: (scale: float, length: float, randomness: float)
Ng      `@g      0@T)r   r>   )r@   scalelength
randomnesss       r    set_sketch_paramsArtist.set_sketch_params  s,    , =DL!?UJ4F$GDL
r#   c                     Xl         SU l        g)z[
Set the path effects.

Parameters
----------
path_effects : list of `.AbstractPathEffect`
TN)r   r>   )r@   path_effectss     r    set_path_effectsArtist.set_path_effects  s     *
r#   c                     U R                   $ r<   )r   rI   s    r    get_path_effectsArtist.get_path_effects  s    !!!r#   c                 t    U(       a&  U R                   b  U R                   R                  SS9$ U R                   $ )z
Return the `.Figure` or `.SubFigure` instance the artist belongs to.

Parameters
----------
root : bool, default=False
    If False, return the (Sub)Figure this artist is on.  If True,
    return the root Figure for a nested tree of SubFigures.
Tr*   )rw   r1   )r@   r+   s     r    r1   Artist.get_figure  s8     D''3&&11t1<<"""r#   c                     U R                   UL a  gU R                   b  [        S5      eXl         U R                   (       a  U R                   U La  U R                  5         SU l        g)z
Set the `.Figure` or `.SubFigure` instance the artist belongs to.

Parameters
----------
fig : `~matplotlib.figure.Figure` or `~matplotlib.figure.SubFigure`
Nz1Can not put single artist in more than one figureT)rw   RuntimeErrorrr   r>   )r@   r3   s     r    
set_figureArtist.set_figure  sa     #% *  6 7 7!4#6#6d#BMMO
r#   zVThe (Sub)Figure that the artist is on.  For more control, use the `get_figure` method.)docc                     [         R                  " [        S4US9  XR                  :w  a  Xl        U R	                  5         SU l        gg)a-  
Set the artist's clip `.Bbox`.

Parameters
----------
clipbox : `~matplotlib.transforms.BboxBase` or None
    Will typically be created from a `.TransformedBbox`. For instance,
    ``TransformedBbox(Bbox([[0, 0], [1, 1]]), ax.transAxes)`` is the default
    clipping for an artist added to an Axes.

Nr}   T)r   check_isinstancer   r}   rr   r>   )r@   r}   s     r    set_clip_boxArtist.set_clip_box  s=     	x.@ll""LMMODJ #r#   c                    SSK JnJn  SnUc  [        X5      (       a<  [	        [
        R                  " 5       UR                  5       5      U l        SU l	        SnO<[        X5      (       a  [        U5      U l	        SnO[        U[        5      (       a  Uu  pUc
  SU l	        SnOc[        U[        5      (       a  [        X5      U l	        SnO;[        U[        5      (       a	  Xl	        SnO[        U[        5      (       a  Xl	        SnU(       d7  [        S[        U5      R                    S[        U5      R                    35      eU R#                  5         SU l        g)a  
Set the artist's clip path.

Parameters
----------
path : `~matplotlib.patches.Patch` or `.Path` or `.TransformedPath` or None
    The clip path. If given a `.Path`, *transform* must be provided as
    well. If *None*, a previously set clip path is removed.
transform : `~matplotlib.transforms.Transform`, optional
    Only used if *path* is a `.Path`, in which case the given `.Path`
    is converted to a `.TransformedPath` using *transform*.

Notes
-----
For efficiency, if *path* is a `.Rectangle` this method will set the
clipping box to the corresponding rectangle and set the clipping path
to ``None``.

For technical reasons (support of `~.Artist.set`), a tuple
(*path*, *transform*) is also accepted as a single positional
parameter.

.. ACCEPTS: Patch or (Path, Transform) or None
r   )Patch	RectangleFNTz,Invalid arguments to set_clip_path, of type z and )matplotlib.patchesrK  rL  r   r   r   unitr   r}   r~   r   tupler   r   	TypeErrorr   rL   rr   r>   )r@   path	transformrK  rL  successs         r    set_clip_pathArtist.set_clip_path  s&   2 	8$**.tyy{/3/A/A/C E!%D((!5d!;D%(("&<!DNGd##,T=DNG233!NGo..!NG>:&&'uT)_-E-E,FHI I
 	
r#   c                     U R                   $ )zK
Return the alpha value used for blending - not supported on all
backends.
)r|   rI   s    r    	get_alphaArtist.get_alphaN  s    
 {{r#   c                     U R                   $ )zReturn the visibility.)rz   rI   s    r    get_visibleArtist.get_visibleU  s    }}r#   c                     U R                   $ )z&Return whether the artist is animated.)r{   rI   s    r    get_animatedArtist.get_animatedY      ~~r#   c                     U R                   $ )z
Return boolean flag, ``True`` if artist is included in layout
calculations.

E.g. :ref:`constrainedlayout_guide`,
`.Figure.tight_layout()`, and
``fig.savefig(fname, bbox_inches='tight')``.
r   rI   s    r    get_in_layoutArtist.get_in_layout]  s     r#   c                    U R                  5       nU R                  5       nU R                  SL=(       a    U R                  5       =(       a    USL=(       d    USL=(       a    USL =(       dA    [        R
                  " UR                  U R                  R                  R                  :H  5      =(       aD    USL =(       d9    [        U[        5      =(       a"    UR                  U R                  R                  L $ )aD  
Return a boolean flag, ``True`` if the artist is clipped to the Axes
and can thus be skipped in layout calculations. Requires `get_clip_on`
is True, one of `clip_box` or `clip_path` is set, ``clip_box.extents``
is equivalent to ``ax.bbox.extents`` (if set), and ``clip_path._patch``
is equivalent to ``ax.patch`` (if set).
N)r   r   r=   r   npallextentsr   r   r   _patchpatch)r@   r   r   s      r    _fully_clipped_to_axesArtist._fully_clipped_to_axesh  s     $$&&&(			% >$$&>T)BYd-B> % Kx//499>>3I3IIJ	>
 $& ="9.BC ="))TYY__<	?r#   c                     U R                   $ )z(Return whether the artist uses clipping.)r   rI   s    r    r   Artist.get_clip_on      ||r#   c                     U R                   $ )zReturn the clipbox.rF  rI   s    r    r   Artist.get_clip_box  rn  r#   c                     U R                   $ )zReturn the clip path.)r~   rI   s    r    r   Artist.get_clip_path  r_  r#   c                 R    U R                   b  U R                   R                  5       $ g)z
Return the clip path with the non-affine part of its
transformation applied, and the remaining affine part of its
transformation.
)NN)r~   get_transformed_path_and_affinerI   s    r    $get_transformed_clip_path_and_affine+Artist.get_transformed_clip_path_and_affine  s$     >>%>>AACCr#   c                 >    Xl         U R                  5         SU l        g)z
Set whether the artist uses clipping.

When False, artists will be visible outside the Axes which
can lead to unexpected results.

Parameters
----------
b : bool
TN)r   rr   r>   r@   bs     r    set_clip_onArtist.set_clip_on  s      	
r#   c                     U R                   (       aD  U R                  b  UR                  U R                  5        UR                  U R                  5        gUR                  S5        UR                  S5        g)z!Set the clip properly for the gc.N)r   r}   set_clip_rectanglerT  r~   )r@   gcs     r    _set_gc_clipArtist._set_gc_clip  sS    <<||'%%dll3T^^,!!$'T"r#   c                     U R                   $ )z.Return whether the artist is to be rasterized.)r   rI   s    r    r,   Artist.get_rasterized      r#   c                     [        U R                  SS5      nU(       a!  U(       d  [        R                  " SU  S35        Xl        g)az  
Force rasterized (bitmap) drawing for vector graphics output.

Rasterized drawing is not supported by all artists. If you try to
enable this on an artist that does not support it, the command has no
effect and a warning will be issued.

This setting is ignored for pixel-based output.

See also :doc:`/gallery/misc/rasterization_demo`.

Parameters
----------
rasterized : bool
r%   FzRasterization of 'z' will be ignoredN)r   r   r   warn_externalr   )r@   
rasterizedsupports_rasterizations      r    set_rasterizedArtist.set_rasterized  s@      "))BE"K4!3D69JKL%r#   c                     U R                   $ )z1Return filter function to be used for agg filter.)r   rI   s    r    r.   Artist.get_agg_filter  r  r#   c                     Xl         SU l        g)a  
Set the agg filter.

Parameters
----------
filter_func : callable
    A filter function, which takes a (m, n, depth) float array
    and a dpi value, and returns a (m, n, depth) array and two
    offsets from the bottom left corner of the image

    .. ACCEPTS: a filter function, which takes a (m, n, 3) float array
        and a dpi value, and returns a (m, n, 3) array and two offsets
        from the bottom left corner of the image
TN)r   r>   )r@   filter_funcs     r    set_agg_filterArtist.set_agg_filter  s     '
r#   c                 >    U R                  5       (       d  gSU l        g)a,  
Draw the Artist (and its children) using the given renderer.

This has no effect if the artist is not visible (`.Artist.get_visible`
returns False).

Parameters
----------
renderer : `~matplotlib.backend_bases.RendererBase` subclass.

Notes
-----
This method is overridden in the Artist subclasses.
NF)rZ  r>   r   s     r    r   Artist.draw  s     !!
r#   c                     Ub,  [        U[        5      (       d  [        S[        U5       35      eUb  SUs=::  a  S::  d  O  [	        SU S35      eXR
                  :w  a  Xl        U R                  5         SU l        gg)z
Set the alpha value used for blending - not supported on all backends.

Parameters
----------
alpha : float or None
    *alpha* must be within the 0-1 range, inclusive.
Nz#alpha must be numeric or None, not r   r   zalpha (z) is outside 0-1 rangeT)r   r
   rP  r   r   r|   rr   r>   r@   alphas     r    	set_alphaArtist.set_alpha  s|     Zt%<%<5d5k]CE Ea5oAowug-CDEEKKKMMODJ  r#   c                    [        U[        5      (       a  [        S5      e[        R                  " U5      (       d  [
        R                  X5        g[        R                  " U5      nSUR                  5       ::  a  UR                  5       S::  d-  [        SUR                  5        SUR                  5        35      eXl        U R                  5         SU l        g)z
Set the alpha value used for blending - not supported on all backends.

Parameters
----------
alpha : array-like or float or None
    All values must be within the 0-1 range, inclusive.
    Masked values and nans are not supported.
z+alpha must be numeric or None, not a stringNr   r   z5alpha must be between 0 and 1, inclusive, but min is z	, max is T)r   strrP  re  iterablerR   r  asarrayminmaxr   r|   rr   r>   r  s     r    _set_alpha_for_arrayArtist._set_alpha_for_array  s     eS!!IJJ{{5!!T)

5!UYY[ UYY[A%5 ++099;-yO P P
r#   c                 ^    XR                   :w  a  Xl         U R                  5         SU l        gg)z>
Set the artist's visibility.

Parameters
----------
b : bool
TN)rz   rr   r>   rx  s     r    set_visibleArtist.set_visible  s(     MMMODJ r#   c                 R    U R                   U:w  a  Xl         U R                  5         gg)ao  
Set whether the artist is intended to be used in an animation.

If True, the artist is excluded from regular drawing of the figure.
You have to call `.Figure.draw_artist` / `.Axes.draw_artist`
explicitly on the artist. This approach is used to speed up animations
using blitting.

See also `matplotlib.animation` and
:ref:`blitting`.

Parameters
----------
b : bool
N)r{   rr   rx  s     r    set_animatedArtist.set_animated,  s#      >>QNMMO r#   c                     Xl         g)z
Set if artist is to be included in layout calculations,
E.g. :ref:`constrainedlayout_guide`,
`.Figure.tight_layout()`, and
``fig.savefig(fname, bbox_inches='tight')``.

Parameters
----------
in_layout : bool
Nra  )r@   	in_layouts     r    set_in_layoutArtist.set_in_layout@  s	     $r#   c                     U R                   $ )z4Return the label used for this artist in the legend.)r   rI   s    r    	get_labelArtist.get_labelM      {{r#   c                 ~    Ub  [        U5      OSnX R                  :w  a  X l        U R                  5         SU l        gg)z
Set a label that will be displayed in the legend.

Parameters
----------
s : object
    *s* will be converted to a string by calling `str`.
NT)r  r   rr   r>   )r@   slabels      r    	set_labelArtist.set_labelQ  s7     -ATKKKMMODJ  r#   c                     U R                   $ )zReturn the artist's zorder.)zorderrI   s    r    
get_zorderArtist.get_zorder`  r  r#   c                     Uc  U R                   R                  nXR                  :w  a  Xl        U R                  5         SU l        gg)zx
Set the zorder for the artist.  Artists with lower zorder
values are drawn first.

Parameters
----------
level : float
NT)r   r  rr   r>   )r@   levels     r    
set_zorderArtist.set_zorderd  s<     =NN))EKKKMMODJ  r#   c                     U R                   $ )a?  
``x`` and ``y`` sticky edge lists for autoscaling.

When performing autoscaling, if a data limit coincides with a value in
the corresponding sticky_edges list, then no margin will be added--the
view limit "sticks" to the edge. A typical use case is histograms,
where one usually expects no margin on the bottom edge (0) of the
histogram.

Moreover, margin expansion "bumps" against sticky edges and cannot
cross them.  For example, if the upper data limit is 1.0, the upper
view limit computed by simple margin application is 1.2, but there is a
sticky edge at 1.1, then the actual upper view limit will be 1.1.

This attribute cannot be assigned to; however, the ``x`` and ``y``
lists can be modified in place as needed.

Examples
--------
>>> artist.sticky_edges.x[:] = (xmin, xmax)
>>> artist.sticky_edges.y[:] = (ymin, ymax)

)r   rI   s    r    sticky_edgesArtist.sticky_edgest  s    2 !!!r#   c                 r   UR                   U l         UR                  U l        UR                  U l        UR                  U l        UR                  U l        UR
                  U l        UR                  U l        UR                  U l        UR                  U l        UR                  U l	        UR                  R                  R                  5       U R                  R                  SS& UR                  R                  R                  5       U R                  R                  SS& U R                  5         SU l        g)z'Copy properties from *other* to *self*.NT)rx   ry   rz   r|   r}   r   r~   r   r   r   r  r   r   r   rr   r>   )r@   others     r    update_fromArtist.update_from  s    **"00ll}}}}ll}}"00!&!3!3!5!5!:!:!<A!&!3!3!5!5!:!:!<A
r#   c                 4    [        U 5      R                  5       $ )z8Return a dictionary of all the properties of the artist.)rf   
propertiesrI   s    r    r  Artist.properties  s    t$//11r#   c           	         / n[         R                  " U SS9   UR                  5        H  u  pEUS:X  a  UR                  [	        XU5      5        M(  [        U SU 3S5      n[        U5      (       d!  [        UR                  [        U 5      US9US9eUR                  U" U5      5        M     SSS5        U(       a  U R                  5         SU l        U$ ! , (       d  f       N.= f)	z
Helper for `.Artist.set` and `.Artist.update`.

*errfmt* is used to generate error messages for invalid property
names; it gets formatted with ``type(self)`` for "{cls}" and the
property name for "{prop_name}".
F)eventsonr=   set_N)r]   	prop_name)nameT)r   _setattr_cmitemsappendsetattrr   r  r   formatr   rr   r>   )r@   propserrfmtretkvr   s          r    _update_propsArtist._update_props  s     te4 ;JJwt23"44sT:D#D>>,"MMd4jAMF!"$ $ JJtAw' & 5 MMODJ
! 54s   BC
C#c                 &    U R                  US5      $ )z\
Update this artist's properties from the dict *props*.

Parameters
----------
props : dict
z5{cls.__name__!r} object has no property {prop_name!r}r  )r@   r  s     r    updateArtist.update  s     !!JL 	Lr#   c                 &    U R                  US5      $ )z
Update artist properties without prenormalizing them, but generating
errors as if calling `set`.

The lack of prenormalization is to maintain backcompatibility.
zE{cls.__name__}.set() got an unexpected keyword argument {prop_name!r}r  rX   s     r    _internal_updateArtist._internal_update  s     !!  	r#   c                 L    U R                  [        R                  " X5      5      $ r<   )r  r   normalize_kwargsrX   s     r    rW   
Artist.set  s      $$U%;%;F%IJJr#   c           	   +      #    U Vs0 s H  o"[        U SU 35      " 5       _M     nn U R                  " S0 UD6  Sv   U R                  " S0 UD6  gs  snf ! U R                  " S0 UD6  f = f7f)zF
`.Artist.set` context-manager that restores original values at exit.
get_NrH   )r   rW   )r@   r   r  	orig_valss       r    _cm_setArtist._cm_set  sm     
 >DDVQCj133V	D	"HHvHH!y! E
 HH!y!s%   A-AA-A A-A**A-c           	        ^ Tc  S nOO[        T[        5      (       a  [        T[        5      (       a  U4S jnO[	        T5      (       a  TnO[        S5      e[        [        R                  U R                  5        Vs/ s H  oDR                  U5      PM     sn/ 5      nU(       a  U" U 5      (       a  UR                  U 5        U$ s  snf )a  
Find artist objects.

Recursively find all `.Artist` instances contained in the artist.

Parameters
----------
match
    A filter criterion for the matches. This can be

    - *None*: Return all objects contained in artist.
    - A function with signature ``def match(artist: Artist) -> bool``.
      The result will only contain artists for which the function
      returns *True*.
    - A class instance: e.g., `.Line2D`. The result will only contain
      artists of this class or its subclasses (``isinstance`` check).

include_self : bool
    Include *self* in the list to be checked for a match.

Returns
-------
list of `.Artist`

c                     gNTrH   )r   s    r    	matchfunc!Artist.findobj.<locals>.matchfunc  s    r#   c                    > [        U T5      $ r<   )r   )r   matchs    r    r  r    s    !!U++r#   zFmatch must be None, a matplotlib.artist.Artist subclass, or a callable)r   r   
issubclassrR   r  r   r   operatoriaddr   findobjr  )r@   r  include_selfr  cartistss    `    r    r  Artist.findobj  s    4 =t$$E6)B)B,e__I 7 8 8 8<8I8I8KL8K1))I.8KLbRIdOONN4  Ms   >C
c                     g)a  
Return the cursor data for a given event.

.. note::
    This method is intended to be overridden by artist subclasses.
    As an end-user of Matplotlib you will most likely not call this
    method yourself.

Cursor data can be used by Artists to provide additional context
information for a given event. The default implementation just returns
*None*.

Subclasses can override the method and return arbitrary data. However,
when doing so, they must ensure that `.format_cursor_data` can convert
the data to a string representation.

The only current use case is displaying the z-value of an `.AxesImage`
in the status bar of a plot window, while moving the mouse.

Parameters
----------
event : `~matplotlib.backend_bases.MouseEvent`

See Also
--------
format_cursor_data

NrH   )r@   r   s     r    r   Artist.get_cursor_data  s    : r#   c                     [         R                  " U5      S:X  a"  [        U S5      (       a  U R                  U5      $  US     SR                  S U 5       5      nSU-   S-   $ ! [        [
        4 a    U/n N5f = f)a  
Return a string representation of *data*.

.. note::
    This method is intended to be overridden by artist subclasses.
    As an end-user of Matplotlib you will most likely not call this
    method yourself.

The default implementation converts ints and floats and arrays of ints
and floats into a comma-separated string enclosed in square brackets,
unless the artist has an associated colorbar, in which case scalar
values are formatted using the colorbar's formatter.

See Also
--------
get_cursor_data
r   _format_cursor_data_overridez, c              3   X   #    U  H   n[        U[        5      (       d  M  US  v   M"     g7f)z0.3gN)r   r	   )r   items     r    r   ,Artist.format_cursor_data.<locals>.<genexpr>N  s'      !>DD$.tV$< "0D;Ds   **[])re  ndimr[   r  rP  
IndexErrorjoin)r@   datadata_strs      r    format_cursor_dataArtist.format_cursor_data2  s    $ 774=A'$0N"O"O 44T::Q yy !>D !> >H>C''	 z* vs   A# #A98A9c                     U R                   $ )zk
Return whether this artist is queried for custom context information
when the mouse cursor moves over it.
)r   rI   s    r    get_mouseoverArtist.get_mouseoverR  s    
 r#   c                     [        U5      U l        U R                  nU(       aI  U R                  (       a  UR                  R	                  U 5        gUR                  R                  U 5        gg)z
Set whether this artist is queried for custom context information when
the mouse cursor moves over it.

Parameters
----------
mouseover : bool

See Also
--------
get_cursor_data
.ToolCursorPosition
.NavigationToolbar2
N)boolr   r=   r   addr   )r@   	mouseoverr   s      r    set_mouseoverArtist.set_mouseoverY  sO     y/YY!!%%d+!!))$/	 r#   )r   r|   r{   rv   r   r   r~   r   r   r   r   rw   r   r   r   r   r   r   rt   r   rx   ry   r   rz   r=   r}   r>   ru   r  r<   )NNN)Fr  )\rL   rM   rN   rO   rm   r  r^   rh   classmethodr\   r   r   r   r   r   r   propertyr=   setterr>   r   r   r   r   rr   r   r   r   r   r   r   r   r
  r  r  r  r  r!  r%  r(  r,  r/  r5  r9  r<  r1   rB  ra   rH  rT  rW  rZ  r]  rb  rj  r   r   r   ru  rz  r  r,   r  r.   r  r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  rW   
contextlibcontextmanagerr  r  r   r  r  r
  r	  rP   rH   r#   r    rR   rR   t   sI    F24%!  ("H
$>VO

)
)   
[[7 7   \\
+ 
+&(6G:(,"4$(T$#L!F
	8(8	"#0 j*CEF$<|	?0"# &. $&&.($  " "4"26	L	K 	" 	"*X>(@0. 6Ir#   rR   c                 x     U R                   " U0 0 UESS0ED6$ ! [         a    U R                   " U0 UD6s $ f = f)z
Matplotlib's `.Axes.get_tightbbox` and `.Axis.get_tightbbox` support a
*for_layout_only* kwarg; this helper tries to use the kwarg but skips it
when encountering third-party subclasses that do not support it.
for_layout_onlyT)r   rP  )objr   r   s      r    _get_tightbbox_for_layout_onlyr  s  sP    2  $N*MV*M5F*MNN 2  $1&112s    99c                       \ rS rSrSrS rS r\R                  " S5      r	S r
S rS r\\S	 5       5       r\\S
 5       5       rS r1 SkrS rSS jrSS jrS rS rSrg)rf   i  z
A helper class to inspect an `~matplotlib.artist.Artist` and return
information about its settable properties and their current values.
c                 &   [        U[        5      (       d;  [        R                  " U5      (       a   [	        U5      n[        U5      (       a  US   nXl        [        U[        5      (       d  [        U5      nXl        U R                  5       U l
        g)z
Initialize the artist inspector with an `Artist` or an iterable of
`Artist`\s.  If an iterable is used, we assume it is a homogeneous
sequence (all `Artist`\s are of the same type) and it is your
responsibility to make sure this is so.
r   N)r   rR   re  r  listlenoorigr   oget_aliasesaliasd)r@   r  s     r    r   ArtistInspector.__init__  si     !V$${{1~~Gq66!A
!T""QA&&(r#   c           	      (   [        U R                  5       Vs/ s HC  nUR                  S5      (       d  M  [        [	        U R                  U5      5      (       d  MA  UPME     nn0 nU H  n[	        U R                  U5      nU R                  U5      (       d  M1  [        R                  " SUSS  S3[        R                  " U5      5      R                  S5      nUR                  USS [        5       5      R                  USS 5        M     U$ s  snf )z
Get a dict mapping property fullnames to sets of aliases for each alias
in the :class:`~matplotlib.artist.ArtistInspector`.

e.g., for lines::

  {'markerfacecolor': {'mfc'},
   'linewidth'      : {'lw'},
  }
)r  r  z`(N   z.*)`r   )dirr  
startswithr  r   is_aliasresearchinspectgetdocgroup
setdefaultrW   r  )r@   r  namesaliasesr   propnames         r    r  ArtistInspector.get_aliases  s     #&dff+ 9+$OO$45  !67 + 9 D4664(D==&&yy2d2AhZt!4!(!577<uQx x|SU377QRA  9s   D"DDz6\n\s*(?:\.\.\s+)?ACCEPTS:\s*((?:.|\n)*?)(?:$|(?:\n\n))c                 b   SU-  n[        U R                  U5      (       d  [        U R                   SU 35      e[        U R                  U5      n[        US5      (       a  UR                  $ [
        R                  " U5      nUc  gUR                  S5      (       a  gU R                  R                  U5      nUb'  [        R                  " SSUR                  S	5      5      $ UR                  R                  S	   n[        R                  " S
U S3U5      nU(       a  UR                  S	5      $ g)a  
Get the legal arguments for the setter associated with *attr*.

This is done by querying the docstring of the setter for a line that
begins with "ACCEPTS:" or ".. ACCEPTS:", and then by looking for a
numpydoc-style documentation for the setter's first argument.
zset_%sz has no function 
_kwarg_docNunknown
Alias for z
 * r   z
(?m)^ *\*?z : (.+))r[   r  r   r   r.  r%  r&  r!  _get_valid_values_regexr$  r#  subr'  __code__co_varnames)r@   attrr  r   	docstringr  
param_names          r    get_valid_values ArtistInspector.get_valid_values  s    $tvvt$$ DFF8+<TF!CDDtvvt$4&&??"NN4(	--,,33I>66&#u{{1~66 ]]..q1
 		Z
|7;YG;;q>!r#   c                 d    SSS.nUR                  5        H  u  p4UR                  X45      nM     U$ )zh
Changes the full path to the public API path that is used
in sphinx. This is needed for links to work.
Axes)_base._AxesBase
_axes.Axes)r  replace)r@   source_classreplace_dictkeyvalues        r    _replace_pathArtistInspector._replace_path  s<    
 ,2&,.&,,.JC'//;L /r#   c                 @   / n[        U R                  5       H  nUR                  S5      (       d  M  [        U R                  U5      n[	        U5      (       a+  U R                  U5      S:  d  U R                  U5      (       a  Mn  UR                  USS 5        M     U$ )z
Get the attribute strings with setters for object.

For example, for a line, return ``['markerfacecolor', 'linewidth',
....]``.
r     r  N)r   r  r!  r   r  number_of_parametersr"  r  )r@   settersr  r   s       r    rg   ArtistInspector.get_setters  s     KD??6**4664(DTNN006:}}T**NN48$   r#   c                 T    [        [        R                  " U 5      R                  5      $ )z3Return number of parameters of the callable *func*.)r  r%  	signature
parameters)r   s    r    rH  $ArtistInspector.number_of_parameters  s      7$$T*5566r#   c                 X    [         R                  " U 5      nUc  gUR                  S5      $ )zD
Return whether the object *method* is an alias for another method.
Fr0  )r%  r&  r!  )methoddss     r    r"  ArtistInspector.is_alias   s)     ^^F#:}}\**r#   c           	          SR                  S [        U R                  R                  U/ 5      5       5       5      nX-   $ )z
Return 'PROPNAME or alias' if *s* has an alias, else return 'PROPNAME'.

For example, for the line markerfacecolor property, which has an
alias, return 'markerfacecolor or mfc' and for the transform
property, which does not, return 'transform'.
rq   c              3   ,   #    U  H
  nS U-  v   M     g7f)z or %sNrH   )r   r   s     r    r   /ArtistInspector.aliased_name.<locals>.<genexpr>  s     O0N1(Q,0Ns   )r  sortedr  get)r@   r  r*  s      r    aliased_nameArtistInspector.aliased_name  s4     ''Ot{{q"7M0NOO{r#   >	   $matplotlib.image._ImageBase.set_data%matplotlib.image._ImageBase.set_alpha%matplotlib.image._ImageBase.set_array(matplotlib.image._ImageBase.set_resample)matplotlib.image._ImageBase.set_filterrad*matplotlib.image._ImageBase.set_filternorm-matplotlib.image._ImageBase.set_interpolation3matplotlib.image._ImageBase.set_interpolation_stage3matplotlib.text._AnnotationBase.set_annotation_clipc           	         ^ TU R                   ;   a  SU S3$ SR                  U4S j[        U R                  R	                  U/ 5      5       5       5      nSU ST SU 3$ )a
  
Return 'PROPNAME or alias' if *s* has an alias, else return 'PROPNAME',
formatted for reST.

For example, for the line markerfacecolor property, which has an
alias, return 'markerfacecolor or mfc' and for the transform
property, which does not, return 'transform'.
z``rq   c              3   6   >#    U  H  nS U ST S3v   M     g7f)z or :meth:` <>`NrH   )r   r  targets     r    r   4ArtistInspector.aliased_name_rest.<locals>.<genexpr>5  s%      S3Qak!Bvhb)3Qs   z:meth:`re  rf  )_NOT_LINKABLEr  rV  r  rW  )r@   r  rg  r*  s     ` r    aliased_name_rest!ArtistInspector.aliased_name_rest(  sl     T'''s":'' S39$++//!R:P3QS S2fXRy11r#   Nc                    U(       a  SU-  nOSnUb  U R                  U5      nU U SU 3$ / n[        U R                  5       5       H=  nU R                  U5      nU R                  U5      nUR	                  U U SU 35        M?     U$ )z
If *prop* is *None*, return a list of strings of all settable
properties 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.
r1  rq   : )r9  rV  rg   rX  r  )r@   rn   leadingspacepadacceptslinesr  s          r    pprint_settersArtistInspector.pprint_setters9  s     $CC++D1GU4&7),,4++-.D++D1G$$T*DLLC5b	23 / r#   c           	      &   U(       a  SU-  nOSnUb  U R                  U5      nU U SU 3$ / n[        U R                  5       5       H  nU R                  R                   H+  n[        USU 3S5      nU(       d  M  UR                  c  M+    O   [        U R                  SU 35      nUR                  XR                   SUR                   345        M     U VVs/ s H6  u  pU R                  X5      R                  SS5      R                  S	S5      PM8     n	nnU VV
s/ s H  u  pU R                  U5      PM     nnn
[        S
 U	 5       5      n[        S U 5       5      nUS-   SU-  -   S-   SU-  -   nSUS-   US-   SUUS-   SR                  U5      -   S-   SR                  U5      -   U/[        X5       VVs/ s H1  u  pUS-   UR                  U5      -   S-   UR                  U5      -   PM3     snnQUPSP$ s  snnf s  sn
nf s  snnf )z
If *prop* is *None*, return a list of reST-formatted strings of all
settable properties 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.
r1  rq   Nrm  r  .r=  r<  r>  c              3   8   #    U  H  n[        U5      v   M     g 7fr<   r  )r   ns     r    r   6ArtistInspector.pprint_setters_rest.<locals>.<genexpr>u  s     -u!s1vvu   c              3   8   #    U  H  n[        U5      v   M     g 7fr<   rw  )r   r  s     r    r   ry  v  s     /w!s1vvwrz  z   =z
.. table::z   :class: property-tablePropertyDescription)r9  rV  rg   r  __mro__r   rm   r  rM   rN   rj  r?  r  ljustzip)r@   rn   rn  ro  rp  prop_and_qualnamesr]   rP  rg  r)  _col0_lencol1_lentable_formatstrrx  r  s                   r    pprint_setters_rest#ArtistInspector.pprint_setters_restQ  sj    $CC++D1GU4&7),,4++-.Dvv~~ TFmT:6fnn8 &
 !4v7%%++,Af.A.A-BCDF / &89 &8\T ''5'+V4',/0 &8 	 9
 #56"4wt ((."4 	 6 -u--/w//+h6>xO ,--%K***844#))(34
 e-/-$! EkAGGH--58II-/
 
 
 	
96 /s   =H"H 8Hc           	      
   U R                   n[        U5       Vs/ s H8  nUR                  S5      (       d  M  [        [	        X5      5      (       d  M6  UPM:     nnUR                  5         0 nU Hi  n[	        X5      nU R                  U5      (       a  M&   [        R                  " 5          [        R                  " S5        U" 5       nSSS5        WXBSS '   Mk     U$ s  snf ! , (       d  f       N = f! [         a     M  f = f)z3Return a dictionary mapping property name -> value.r  ignoreNr  )r  r   r!  r  r   sortr"  warningscatch_warningssimplefilter	Exception)r@   r  r  gettersr   r   rA   s          r    r  ArtistInspector.properties  s    JJ$'F NFDoof- 2:71;K2L F ND1#D}}T""",,.))(3&C / "qr(  !N /.  s:   CCCC4+C#	C4#
C1	-C44
DDc                    / n[        U R                  5       R                  5       5       H  u  p#[        USS5      S:w  a!  [	        U5      S:  a  [        USS 5      S-   nO[        U5      nUR                  SS5      n[	        U5      S:  a  USS S-   nU R                  U5      nUR                  S	U S
U 35        M     U$ )z8Return the getters and actual values as list of strings.shaperH      Nz...
r1  2   z    z = )	rV  r  r  r   r  r  r?  rX  r  )r@   rq  r  rA   r  s        r    pprint_gettersArtistInspector.pprint_getters  s     1 7 7 9:IDsGR(B.3s8a<BQL5(H		$$A1v{crFUN$$T*DLL4vS,- ; r#   )r  r  r  )NrG  )Nr  )rL   rM   rN   rO   rm   r   r  r#  compiler2  r9  rD  rg   staticmethodr   rH  r"  rX  ri  rj  rr  r  r  r  rP   rH   r#   r    rf   rf     s    
)(0 !jjA%N	& 
7  7 
	+  	+	M 2"05
n*r#   rf   c                     Uc6  [        U 5      nUR                  5       n[        SR                  U5      5        g[	        U SU-   5      " 5       $ )a  
Return the value of an `.Artist`'s *property*, or print all of them.

Parameters
----------
obj : `~matplotlib.artist.Artist`
    The queried artist; e.g., a `.Line2D`, a `.Text`, or an `~.axes.Axes`.

property : str or None, default: None
    If *property* is 'somename', this function returns
    ``obj.get_somename()``.

    If it's None (or unset), it *prints* all gettable properties from
    *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

See Also
--------
setp
Nr  r  )rf   r  printr  r   )r  r  inspr  s       r    getpr    sJ    8 s#!!#diin3)*,,r#   filec          	         [        U [        5      (       a  U /nO[        [        R                  " U 5      5      nU(       d  g[        US   5      nU(       dY  [        U5      S:  aJ  U(       a  [        UR                  US   S9US9  g[        SR                  UR                  5       5      US9  g[        U5      S-  (       a  [        S5      e[        [        USSS2   USSS2   5      5      nU Vs/ s H  owR                  U5      PM     snU Vs/ s H  owR                  " S	0 UD6PM     sn-   n[        [        R                  " U5      5      $ s  snf s  snf )
a  
Set one or more properties on an `.Artist`, or list allowed values.

Parameters
----------
obj : `~matplotlib.artist.Artist` or list of `.Artist`
    The artist(s) whose properties are being set or queried.  When setting
    properties, all artists are affected; when querying the allowed values,
    only the first instance in the sequence is queried.

    For example, two lines can be made thicker and red with a single call:

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

file : file-like, default: `sys.stdout`
    Where `setp` writes its output when asked to list allowed values.

    >>> with open('output.log') as file:
    ...     setp(line, file=file)

    The default, ``None``, means `sys.stdout`.

*args, **kwargs
    The properties to set.  The following combinations are supported:

    - Set the linestyle of a line to be dashed:

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

    - Set multiple properties at once:

      >>> setp(line, linewidth=2, color='r')

    - List allowed values for a line's linestyle:

      >>> setp(line, 'linestyle')
      linestyle: {'-', '--', '-.', ':', '', (offset, on-off-seq), ...}

    - List all properties that can be set, and their allowed values:

      >>> setp(line)
      agg_filter: a filter function, ...
      [long output listing omitted]

    `setp` also supports MATLAB style string/value pairs.  For example, the
    following are equivalent:

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

See Also
--------
getp
Nr   rG  )rn   r  r  z(The set args must be string, value pairsr   rH   )r   rR   r  r   flattenrf   r  r  rr  r  r   dictr  r  rW   )	r  r  r   r   objsr  funcvalsr  r  s	            r    setpr    s   v #vuEMM#&'47#Dc$i!m$%%47%3$? 	 $))D//12>
4y1}CDDCSqS	41:./H'+
,t!88Ht
,/NA/N
NCc"## -/Ns   2EEc                     [        U 5      n[        R                  S   (       a  SR                  UR	                  SS95      $ SSR                  UR                  SS95      -   $ )a  
Inspect an `~matplotlib.artist.Artist` class (using `.ArtistInspector`) and
return information about its settable properties and their current values.

Parameters
----------
artist : `~matplotlib.artist.Artist` or an iterable of `Artist`\s

Returns
-------
str
    The settable properties of *artist*, as plain text if
    :rc:`docstring.hardcopy` is False and as a rst table (intended for
    use in Sphinx) if it is True.
zdocstring.hardcopyr  r  )rn  zProperties:
)rf   r   r   r  r  rr  )r   ais     r    rl   rl   (  sb      
	 B||01 IIb,,!,<= Ldii(9(9q(9(IJJLr#   r<   )4collectionsr   r  	functoolsr   r   r   r%  r   r   loggingnumbersr	   r
   r  r#  r  numpyre  
matplotlibr   rq   r   r   rQ  r   
transformsr   r   r   r   r   r   r   	getLoggerrL   r   r'   r5   r:   rB   rC   rE   rj   rR   r  rf   r  rW  r  rl   r\   rH   r#   r    <module>r     s    "  * *  (     	     @ @ @ "*(V
 Y
&  
|7 |7~'	2k k\	!-H   Q$hL.  * * ,r#   