
    h                     P   S r SSKrSSKJrJrJr  SSKrSSKrSSK	r
SSKJrJrJrJr  SSKJrJr  SSKJrJrJrJr  SSKJr  SS	KJr  SS
KJrJrJ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*J+r+J,r,J-r-J.r.J/r/  \R`                  " \15      r2S r3S r4S r5S r6S r7\Rp                  \Rr                  " S/S/S/S/S/S/S/S/S/S/S.
5       " S S\5      5       5       r: " S  S!\:5      r; " S" S#5      r<\:Rz                  r>\R0                  r?\:R                  r@\R                  rBg)$zK
2D lines with support for a variety of line styles, markers, colors, etc.
    N)IntegralNumberReal   )_apicbookcolors
_docstring)Artistallow_rasterization)_to_unmasked_float_array	ls_mapperls_mapper_rSTEP_LOOKUP_MAP)MarkerStyle)Path)BboxBboxTransformToTransformedPath)	JoinStyleCapStyle)_path)	CARETLEFT
CARETRIGHTCARETUP	CARETDOWNCARETLEFTBASECARETRIGHTBASECARETUPBASECARETDOWNBASETICKLEFT	TICKRIGHTTICKUPTICKDOWNc                 n   [        U [        5      (       a  [        R                  " X 5      n U S;   a  SnSnOdU S;   a#  Sn[	        [
        R                  SU  S3   5      nO;[        U [        5      (       a  U u  pUc  [        SU < 35      eO[        SU < 35      eUb  [        U5      nU(       a  X-  nX4$ )z"Convert linestyle to dash pattern.)solidNoner   N)dasheddashdotdottedlines._patternzUnrecognized linestyle: )	
isinstancestrr   gettuplemplrcParams
ValueErrorsum)styleoffsetdashesdsums       B/var/www/html/env/lib/python3.13/site-packages/matplotlib/lines.py_get_dash_patternr:   !   s     %e+!!	1	1s||fUG8$<=>	E5	!	!>7yABB  3E9=>> 6{NF>    c                 ,    USS USS -   nXS   -   nX24$ )zCReturn the inverse of the given dash pattern, for filling the gaps.N )r6   r7   gapsoffset_gapss       r9   _get_inverse_dash_patternrA   ?   s1     "#;$D ":%Kr;   c                     [         R                  S   (       d  X4$ X-  nUb  U Vs/ s H  oDb  XB-  OS PM     snOS nX54$ s  snf )Nzlines.scale_dashes)r1   r2   )r6   r7   lwscaled_offsetxscaled_dashess         r9   _scale_dashesrG   K   sZ    <<,-~KM* BHHAaf47H04 '' Is   Ac                 >   [        U5      S::  a-  [        R                  " X-
  S-  X-
  S-  -   US-  :*  5      u  nU$ USS USS pvUSS U-
  USS U-
  pUS-  U	S-  -   n
X-
  U-  X-
  U	-  -   U
-  nUS:  US:*  -  nX-
  S-  X-
  S-  -   US-  :*  nXSS USS -  ) -  nXkU-  -   X{U	-  -   pX-
  S-  X-
  S-  -   US-  :*  nUU-  nUR                  5       R                  5       u  nUR                  5       R                  5       u  n[        R                  " UU45      $ )z
Return the indices of the segments in the polyline with coordinates (*cx*,
*cy*) that are within a distance *radius* of the point (*x*, *y*).
r      Nr=   r   )lennpnonzeroravelconcatenate)cxcyrE   yradiusresxryrdxdyLnorm_squ
candidates
point_hitspxpy	line_hitspointsliness                      r9   segment_hitsra   T   sm    1v{zz26a-26a-76Q;FG
 sVQsV qrURZ12Qwq H
'R27b.	(H4Aq&Q!V$J &Q"&Q.&A+=J3B*QR. @AAJ b&["2v+Q"'a/6Q;>IJ&I ((*GF__&&(FE>>65/**r;   c                    UR                   UR                  pTS n[        U [        5      (       a  SU 4n O[        U [        5      (       a  SU 4n [        U [
        5      (       Gam  [        U 5      S:w  a  [        SU  35      eU u  px[        U[        5      (       aO  [        U[        5      (       d  [        SU  35      e[        U[        USU5         U" U[        USU5      5      5      $ [        U[        5      (       Ga  [        U[        5      (       d  [        SU  35      eUc  [        S	5      e[        R                  " U5      R                  S
S9n	XY   n
UR                  U
5      n[        R                  " [        U5      S45      nSUSSS24'   US
S2SS24   USS2SS24   -
  US
S2SS24'   [        R                  " UR                   6 R#                  5       nUR$                  R                  SS/S
S
//5      u  u  pu  nn[        R                  " X-
  UU-
  5      n[        R&                  " UU-  US   UU-  5      n[        R(                  " U[        R*                  SS24   USS2[        R*                  4   -
  5      nUR-                  S
S9n[        R.                  " U5      n[        U
U   U" UU5      5      $ [        SU < S35      e[        U [        5      (       a  [        XP   U" X@5      5      $ [        R0                  " U 5      (       a   [        XP   U" X@5      5      $ [        SU < S35      e! [        [2        4 a  n[        SU < S35      UeSnAff = f)z
Helper function that sorts out how to deal the input
`markevery` and returns the points where markers should be drawn.

Takes in the `markevery` value and the line path and returns the
sub-sampled path.
c                     U c  gX   $ )z@Helper function to cope with `codes` being an ndarray or `None`.Nr>   )in_vslcs     r9   _slice_or_none(_mark_every_path.<locals>._slice_or_none   s    <yr;   r   g        rI   z7`markevery` is a tuple but its len is not 2; markevery=zo`markevery` is a tuple with len 2 and second element is an int, but the first element is not an int; markevery=Nz{`markevery` is a tuple with len 2 and second element is a float, but the first element is not a float or an int; markevery=z]markevery is specified relative to the Axes size, but the line does not have a Axes as parentr   )axisr=   z
markevery=zG is a tuple with len 2, but its second element is not an int or a floatz. is iterable but not a valid numpy fancy indexz is not a recognized value)codesverticesr-   r   r   r0   rJ   r3   r   slicerK   isfiniteall	transformemptyhypotTcumsum	transAxesarangeabsnewaxisargminuniqueiterable
IndexError)	markeverytpathaffineaxri   vertsrf   startstepfinfvertsdisp_coordsdeltax0y0x1y1scalemarker_deltaindserrs                        r9   _mark_every_pathr   y   s_    ;;5 )X&&	N		It	$	$)$	)U##y>Q **36 7 7dH%%eX.. !!*-. . eE467&ueE4.FGI I d##eT** !!*-. . z >? ?
 ++e$((a(0CZF **62KHHc+.23EE!Q$K&qr1u-CRCF0CCE!"a%LHHegg&--/E "$!7!7!Q!Q8H!IHRhr2HHRWb2g.E99UU]E"Ite|LL 66%

A.am1LLMD;;A;&D99T?DtnUD&ABBYM *: ;< < 
Iu	%	%E$nU&FGG	Y			)(.*JKK :i]2LMNN J' 	)YM *  %()	)s   L: :M 
MM aacdslsrC   mecmewmfcmfcaltms)
antialiasedcolor	drawstyle	linestyle	linewidthmarkeredgecolormarkeredgewidthmarkerfacecolormarkerfacecoloralt
markersizec                   <  ^  \ rS rSrSrSSSSSSSS.=rrS	S
SSS.rSS0r0 \E\Er	/ \Q\Qr
\R                  r\R                  r\R                  rSrSrS rSSSSSSSSSSSSSSSSSSSS.U 4S jjrS rS rS r\" \\5      rS rS rS rS rS rS rSUS  jrS! r S" r!SVS# jr"SUS$ jr#S% r$U 4S& jr%\&S' 5       r'S( r(S) r)S* r*S+ r+S, r,S- r-S. r.S/ r/S0 r0SVS1 jr1S2 r2S3 r3S4 r4SWS5 jr5SWS6 jr6SWS7 jr7S8 r8S9 r9S: r:S; r;S< r<S= r=S> r>S? r?\@R                  S@ 5       rBSA rCSB rDSC rESD rFSE rGSF rHSG rISH rJSI rKU 4SJ jrL\@R                  SK 5       rM\@R                  SL 5       rNSM rOSN rP\@R                  SO 5       rQ\@R                  SP 5       rRSQ rSSR rTSS rUSTrVU =rW$ )XLine2D   z
A line - the line can have both a solid linestyle connecting all
the vertices, and a marker at each vertex.  Additionally, the
drawing of the solid line is influenced by the drawstyle, e.g., one
can create "stepped" lines in various styles.
_draw_solid_draw_dashed_draw_dash_dot_draw_dotted_draw_nothing)----.:r'     _draw_lines_draw_steps_mid_draw_steps_pre_draw_steps_post)defaultz	steps-midz	steps-prez
steps-poststepsrI   i  c           	         U R                   S:w  a  SU R                    S3$ U R                  c  g[        U R                  5      S:  ad  SR                  U R                  S   U R                  S   U R                  S   U R                  S   U R                  S	   U R                  S	   5      $ S
SR                  [        SR                  U R                  U R                  5      5      -  $ )Nr   zLine2D()zLine2D()   z/Line2D(({:g},{:g}),({:g},{:g}),...,({:g},{:g}))r   r   r=   z
Line2D(%s),z({:g},{:g}))_label_xrJ   format_yjoinmapselfs    r9   __str__Line2D.__str__  s    ;;"T[[M++WW_\ADKK
DGGAJ
DGGAJTWWR[* *
  #((M(($''477;#= = =r;   Nnone   )r   r   r   gapcolormarkerr   r   r   r   r   	fillstyler   dash_capstylesolid_capstyledash_joinstylesolid_joinstyle
pickradiusr   r{   c                  > [         TU ]  5         [        R                  " U5      (       d  [	        S5      e[        R                  " U5      (       d  [	        S5      eUc  [
        R                  S   nUc  [
        R                  S   nUc  [
        R                  S   nUc  [
        R                  S   nUc  [
        R                  S   nUc  [
        R                  S	   nUc  [
        R                  S
   nUc  [
        R                  S   nUc  [
        R                  S   nUc  [
        R                  S   nUc  SnSU l        SU l        SU l	        SU l
        U R                  U5        U R                  U5        U R                  U5        U R                  U5        SU l        SU l        X0l        SU l        SU l        U R)                  U5        U R+                  U5        U R-                  U5        SU l        U R1                  U5        Uc  Sn[3        U[4        5      (       d  [5        X}5      U l        OXpl        SU l        U R;                  U5        SU l        SU l        SU l         U RC                  U5        U RE                  U5        U RG                  U5        SU l$        SU l%        SU l&        SU l'        U RQ                  U5        U RS                  U5        U RU                  U
5        U RW                  U	5        U RY                  U5        UU l-        SU l.        [3        U R^                  [`        5      (       a0  [3        U R^                  [b        5      (       d  U R^                  U l2        [        Rf                  " / 5      U l4        [        Rf                  " / 5      U l5        SU l6        SU l7        SU l8        SU l9        SU l:        SU l;        SU l<        SU l=        SU l>        U R                  X5        g)aV  
Create a `.Line2D` instance with *x* and *y* data in sequences of
*xdata*, *ydata*.

Additional keyword arguments are `.Line2D` properties:

%(Line2D:kwdoc)s

See :meth:`set_linestyle` for a description of the line styles,
:meth:`set_marker` for a description of the markers, and
:meth:`set_drawstyle` for a description of the draw styles.

zxdata must be a sequencezydata must be a sequenceNzlines.linewidthzlines.linestylezlines.markerzlines.colorzlines.markersizezlines.antialiasedzlines.dash_capstylezlines.dash_joinstylezlines.solid_capstylezlines.solid_joinstyler   )r   Nr   r   TF)@super__init__rK   ry   RuntimeErrorr1   r2   _dashcapstyle_dashjoinstyle_solidjoinstyle_solidcapstyleset_dash_capstyleset_dash_joinstyleset_solid_capstyleset_solid_joinstyle_linestyles
_drawstyle
_linewidth_unscaled_dash_pattern_dash_patternset_linewidthset_linestyleset_drawstyle_color	set_colorr-   r   _marker	_gapcolorset_gapcolor
_markevery_markersize_antialiasedset_markeveryset_antialiasedset_markersize_markeredgecolor_markeredgewidth_markerfacecolor_markerfacecoloraltset_markerfacecolorset_markerfacecoloraltset_markeredgecolorset_markeredgewidth_internal_updater   
ind_offset_pickerr   bool_pickradiusasarray_xorig_yorig	_invalidx	_invalidyr   r   _xyr   _transformed_path	_subslice	_x_filledset_data)r   xdataydatar   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r{   kwargs	__class__s                          r9   r   Line2D.__init__  sh   F 	 {{5!!9::{{5!!9::%67I%67I>\\.1F=LL/E&89J,,':;K LL)>?M! \\*@AN! \\*@AN"!ll+BCO!I!"#"}-//  1#&/#&9%9%9%u>F&+..&v9DL!L(# 9%[)J' $ $ $#'   1##$67  1  1 	f%$t||V,,t||T22#||Djjnjjn
!%e#r;   c                    U R                  U5      (       a  S0 4$ U R                  (       d  U R                  (       a  U R                  5         [	        U R
                  5      S:X  a  S0 4$ U R                  5       nUR                  5       u  p4UR                  U5      nUR                  nUSS2S4   nUSS2S4   nU R                  SS9nUc"  [        R                  S5        U R                  n	OUR                  S-  U R                  -  n	[        R                   " S	S
9   U R"                  S;   a@  [        R$                  " XaR&                  -
  S-  XqR(                  -
  S-  -   U	S-  :*  5      u  n
OG[+        UR&                  UR(                  XgU	5      n
U R,                  R/                  S5      (       a  U
S-  n
SSS5        W
U R0                  -  n
[	        U
5      S:  [3        U
S94$ ! , (       d  f       N4= f)a{  
Test whether *mouseevent* occurred on the line.

An event is deemed to have occurred "on" the line if it is less
than ``self.pickradius`` (default: 5 points) away from it.  Use
`~.Line2D.get_pickradius` or `~.Line2D.set_pickradius` to get or set
the pick radius.

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

Returns
-------
contains : bool
    Whether any values are within the radius.
details : dict
    A dictionary ``{'ind': pointlist}``, where *pointlist* is a
    list of points of the line that are within the pickradius around
    the event position.

    TODO: sort returned indices by distance
Fr   Nr   Trootz,no figure set when check if mouse is on line      R@ignore)rm   )r'   NrI   r   )ind)_different_canvasr   r   recacherJ   r   _get_transformed_pathget_transformed_path_and_affinetransform_pathrj   
get_figure_logwarningr   dpirK   errstate
_linestylerL   rE   rQ   ra   r   
startswithr   dict)r   
mouseeventtransformed_pathpathr}   xyxtytfigpixelsr  s              r9   containsLine2D.contains  s   0 !!*--"9 >>T^^LLNtxx=A"9  557'GGI$$T*]]1X1X oo4o(;LLGH%%FWWs]T%5%55F
 [[X&.0zz,,&1,\\0Aa/GG{#$
 #:<<rvN??--g66AIC ' 	t 3x!|Tc]**! '&s   BG%%
G3c                     U R                   $ )zW
Return the pick radius used for containment tests.

See `.contains` for more details.
)r   r   s    r9   get_pickradiusLine2D.get_pickradius       r;   c                 \    [        U[        5      (       a  US:  a  [        S5      eXl        g)z
Set the pick radius used for containment tests.

See `.contains` for more details.

Parameters
----------
pickradius : float
    Pick radius, in points.
r   z pick radius should be a distanceN)r-   r   r3   r   )r   r   s     r9   set_pickradiusLine2D.set_pickradius  s)     *d++zA~?@@%r;   c                 6    U R                   R                  5       $ )zC
Return the marker fill style.

See also `~.Line2D.set_fillstyle`.
)r   get_fillstyler   s    r9   r.  Line2D.get_fillstyle  s     ||))++r;   c                 x    U R                  [        U R                  R                  5       U5      5        SU l        g)a  
Set the marker fill style.

Parameters
----------
fs : {'full', 'left', 'right', 'bottom', 'top', 'none'}
    Possible values:

    - 'full': Fill the whole marker with the *markerfacecolor*.
    - 'left', 'right', 'bottom', 'top': Fill the marker half at
      the given side with the *markerfacecolor*. The other
      half of the marker is filled with *markerfacecoloralt*.
    - 'none': No filling.

    For examples see :ref:`marker_fill_styles`.
TN)
set_markerr   r   
get_markerstale)r   fss     r9   set_fillstyleLine2D.set_fillstyle  s+    " 	DLL$;$;$=rBC
r;   c                     Xl         SU l        g)a  
Set the markevery property to subsample the plot when using markers.

e.g., if ``every=5``, every 5-th marker will be plotted.

Parameters
----------
every : None or int or (int, int) or slice or list[int] or float or (float, float) or list[bool]
    Which markers to plot.

    - ``every=None``: every point will be plotted.
    - ``every=N``: every N-th marker will be plotted starting with
      marker 0.
    - ``every=(start, N)``: every N-th marker, starting at index
      *start*, will be plotted.
    - ``every=slice(start, end, N)``: every N-th marker, starting at
      index *start*, up to but not including index *end*, will be
      plotted.
    - ``every=[i, j, m, ...]``: only markers at the given indices
      will be plotted.
    - ``every=[True, False, True, ...]``: only positions that are True
      will be plotted. The list must have the same length as the data
      points.
    - ``every=0.1``, (i.e. a float): markers will be spaced at
      approximately equal visual distances along the line; the distance
      along the line between markers is determined by multiplying the
      display-coordinate distance of the Axes bounding-box diagonal
      by the value of *every*.
    - ``every=(0.5, 0.1)`` (i.e. a length-2 tuple of float): similar
      to ``every=0.1`` but the first marker will be offset along the
      line by 0.5 multiplied by the
      display-coordinate-diagonal-distance along the line.

    For examples see
    :doc:`/gallery/lines_bars_and_markers/markevery_demo`.

Notes
-----
Setting *markevery* will still only draw markers at actual data points.
While the float argument form aims for uniform visual spacing, it has
to coerce from the ideal spacing to the nearest available data point.
Depending on the number and distribution of data points, the result
may still not look evenly spaced.

When using a start offset to specify the first marker, the offset will
be from the first data point which may be different from the first
the visible data point if the plot is zoomed in.

If zooming in on a plot when using float arguments then the actual
data points that have markers will change because the distance between
markers is always determined from the display-coordinates
axes-bounding-box-diagonal regardless of the actual axes data limits.

TN)r   r3  )r   everys     r9   r   Line2D.set_markevery'  s    p  
r;   c                     U R                   $ )zZ
Return the markevery setting for marker subsampling.

See also `~.Line2D.set_markevery`.
)r   r   s    r9   get_markeveryLine2D.get_markeveryb       r;   c                 R    [        U5      (       d  U R                  U5        Xl        g)z
Set the event picker details for the line.

Parameters
----------
p : float or callable[[Artist, Event], tuple[bool, dict]]
    If a float, it is used as the pick radius in points.
N)callabler+  r   )r   ps     r9   
set_pickerLine2D.set_pickerj  s      {{"r;   c                 f    [        SS/SS//5      nUR                  U R                  5       5        U$ )z"Get the bounding box of this line.r   )r   update_from_data_xy
get_xydata)r   bboxs     r9   get_bboxLine2D.get_bboxw  s3    aVaV$%  !23r;   c                 @   [        SS/SS//5      nU R                  5       R                  nUR                  U" U R	                  5       5      SS9  U R
                  (       a=  U R                  S-  U R                  SS9R                  -  S-  nUR                  U5      nU$ )Nr   T)r  r  r
  g      ?)
r   get_transformrn   rD  rE  r   r   r  r  padded)r   rendererrF  trans_data_to_xyr   s        r9   get_window_extentLine2D.get_window_extent}  s    aVaV$%--/99  !1$//2C!D(, 	! 	. <<""T)DOOO,F,J,JJcQB;;r?Dr;   c                 |    [        U5      S:X  a  Uu  u  p#OUu  p#U R                  U5        U R                  U5        g)z{
Set the x and y data.

Parameters
----------
*args : (2, N) array or two 1D arrays

See Also
--------
set_xdata
set_ydata
r   N)rJ   	set_xdata	set_ydata)r   argsrE   rQ   s       r9   r  Line2D.set_data  s9     t9>GFQDAqqr;   c                 "    U R                  SS9  g )NT)always)r  r   s    r9   recache_alwaysLine2D.recache_always  s    D!r;   c                 p   U(       d  U R                   (       a5  U R                  U R                  5      n[        U5      R	                  5       nOU R
                  nU(       d  U R                  (       a5  U R                  U R                  5      n[        U5      R	                  5       nOU R                  n[        R                  " [        R                  " X55      5      R                  [        5      U l        U R                  R                   u  U l        U l	        SU l        U R$                  (       Gat  ['        U5      U R(                  :  GaZ  [*        R,                  " U5      (       Ga>  U R$                  R.                  S:X  Ga#  U R$                  R1                  5       S:X  Ga  U R2                  c  U R5                  5       (       a  U R7                  5       U R$                  R8                  :X  a  SU l        [        R:                  " U5      nUR=                  5       (       aw  U R
                  R?                  5       U l         [        RB                  " ['        U5      5      n[        RD                  " Xv   Xv)    U R
                  U)    5      U R@                  U'   OU R
                  U l         U R*                  b  U R*                  RF                  nOSn[H        U RJ                     " U R                  R                   6 n	[M        [        RN                  " U	5      R                   US9U l        S U l(        SU l         SU l        g )NFrectilinearlinearTr   _interpolation_steps))r   convert_xunitsr   r   rM   r   r   convert_yunitsr   r   rK   column_stackbroadcast_arraysastypefloatr   rq   r  axesrJ   _subslice_optim_min_sizer   is_sorted_and_has_non_nanname
get_xscaler   get_clip_onrJ  	transDataisnananycopyr  rt   interpr]  r   r   r   r   r   )
r   rV  xconvrE   yconvrQ   nanmaskindicesinterpolation_stepsr  s
             r9   r  Line2D.recache  s.   T^^''4E(/557AAT^^''4E(/557AA??2#6#6q#<=DDUK88::IIIFT:::33A66IINNm3II((*h6OO+$$&&&&(DII,?,??!DNhhqkG{{}}!%))CF+*,))$gh&7'9J+Lw' "&::!"&**"A"A"#T__-txxzz:"**R.**/BD
!%r;   c                 :   Ubn  [         U R                     " U R                  USS24   R                  6 n[	        [
        R                  " U5      R                  U R                  R                  S9nOU R                  n[        X0R                  5       5      U l        g)z
Put a TransformedPath instance at self._transformed_path;
all invalidation of the transform is then handled by the
TransformedPath instance.
Nr\  )r   r   r   rq   r   rK   r   r   r]  r   rJ  r   )r   subslicer  r   s       r9   _transform_pathLine2D._transform_path  sy      1488HaK3H3J3JKBB)).2jj.M.MOE JJE!08J8J8L!Mr;   c                 T    U R                   c  U R                  5         U R                   $ )z<Return this line's `~matplotlib.transforms.TransformedPath`.)r   rw  r   s    r9   r  Line2D._get_transformed_path  s&    !!)  "%%%r;   c                 @   > SU l         SU l        [        TU ]  U5        g )NT)r   r   r   set_transform)r   tr  s     r9   r|  Line2D.set_transform  s    a r;   c                 (   U R                  5       (       d  g U R                  (       d  U R                  (       a  U R                  5         SU l        U R
                  (       a  U R                  (       a  U R                  R                  5       u  p#U R                  R                  US5      nU R                  R                  US5      n[        [        US-
  S5      US-   5      nUR                  U l        U R                  U5        OS nU R                  5       (       a  SSKJn  U" U R                  5       U5      nUR#                  SU R%                  5       5        U R&                  U R(                     S:w  Ga  U R+                  5       R-                  5       u  p[/        UR0                  5      (       GaQ  UR3                  5       n
U R5                  U
5        U
R7                  U R9                  5       5        U
R;                  U R<                  5        U
R?                  U R@                  5        U RC                  5       (       a  U RD                  nU RF                  nOU RH                  nU RJ                  nU
RM                  U5        U
RO                  U5        U
RQ                  U RS                  5       5        U RU                  5       b  U
RV                  " U RU                  5       6   U RC                  5       (       a  U RX                  b  [Z        R\                  " U RX                  U R^                  5      nU
Ra                  USS	9  [c        U Rd                  6 u  pU
Rg                  X5        URi                  XU	Rk                  5       5        [Z        R\                  " U Rl                  U R^                  5      nU
Ra                  USS	9  U
Rf                  " U Rd                  6   URi                  XU	Rk                  5       5        U
Ro                  5         U Rp                  (       GaT  U Rr                  S:  GaC  UR3                  5       n
U R5                  U
5        U
R7                  U R9                  5       5        U
R?                  U Rt                  5        U
R;                  U R<                  5        [Z        R\                  " U Rw                  5       U R^                  5      n[Z        R\                  " U Ry                  5       U R^                  5      n[Z        R\                  " U Ry                  SS
9U R^                  5      n[z        R|                  " U R~                  S5      (       a6  [z        R                  " U R                  5       S5      (       d  US S US   4-   nU
Ra                  USS	9  U RU                  5       b0  U RU                  5       u  nnnU
RW                  US-  US-  SU-  5        U Rp                  nU R                  5       S:w  aa  [z        R                  " U SS S9   U R                  5         U R                  U5        U R+                  5       R                  5       u  pS S S 5        O U R+                  5       R                  5       u  p[/        WR0                  5      (       Ga  U R                  5       nUb  [        UUW	U R                  5      nOUnUR                  5       n[        U[        5      (       a  UR                  U Rr                  5      U:  nU
RQ                  U5        U
RM                  UR                  5       5        U
RO                  UR                  5       5        UR                  5       nUR                  5       nUR                  U Rr                  5      n[z        R|                  " UR                  5       S5      (       a  U
R?                  S5        OUR                  U5      nUR                  U
UUUW	Rk                  5       U5        UR                  5       nU(       aE  UR                  5       nUR                  U5      nUR                  U
UUUU	Rk                  5       U5        U
Ro                  5         UR                  S5        SU lU        g ! , (       d  f       GN= f)Nr   leftrightr   )PathEffectRendererline2dr   T)isRGBAaltautor   r   rI   r   )r   r   r   F)Vget_visibler   r   r  r   r  rd  
get_xboundr  searchsortedrk   maxr   rw  get_path_effectsmatplotlib.patheffectsr  
open_groupget_gid_lineStylesr  r  r  rJ   rj   new_gc_set_gc_clipset_urlget_urlr   r   r   r   	is_dashedr   r   r   r   set_joinstyleset_capstyleset_snapget_snapget_sketch_paramsset_sketch_paramsr   mcolorsto_rgba_alphaset_foregroundrA   r   
set_dashes	draw_pathfrozenr   restorer   r   r   get_markeredgecolor_get_markerfacecolorr   
_str_equalr   _str_lower_equalget_markerfacecolorget_drawstyle_setattr_cm!get_transformed_points_and_affiner;  r   get_snap_thresholdr-   r   points_to_pixelsget_joinstyleget_capstyleget_pathrJ  r2  r   draw_markersget_alt_pathget_alt_transformclose_groupr3  )r   rL  r   r   i0i1rv  r  r|   r}   gccapr   lc_rgbar@   r?   ec_rgbafc_rgba
fcalt_rgbar   length
randomnessr   r{   
subsampledsnapmarker_pathmarker_transwalt_marker_pathalt_marker_transs                                  r9   drawLine2D.draw  s    !!>>T^^LLN>>diiYY))+FB,,R8B,,R9BSa^R!V4H&nnDO  *H  ""A)$*?*?*A8LHHdlln5DOO,?!779==? E5>>""__&!!"%

4<<>*""4#4#45  1>>##,,C..D--C//D  &$DMMO,))+7(($*@*@*BC >>##(B%oodnndkkJG%%gd%;(A++)-%K MM+4&&r&--/B!//$++t{{C!!'$!7t112""2fmmo>

<<<D,,q0"Bb!JJt||~&T223t001oo((*DKK9Goo))+T[[:G ))d)3T[[BJ   !6!6??!22002F< <!"1+5gd3%%'3,0,B,B,D)vz$$U1WfQh*E\\F !!#y0&&dLLLN((2%)%?%?%A&G&G&I "E	L L "&!;!;!="C"C"E  5>>"" ..0	(!1!5&$))"=J "'J002dD))#44T5E5EF$NDD!  !5!5!78 3 3 56$oo/%335--d.>.>?##F$5$5$7==$$Q' $0#5#5a#8L%%b+|&0&--/&-/ #)"5"5"7"'-'?'?'A$'7'='=a'@$))1A:"MMOZ9 JJLX&
cL Ls   Ab
bc                     U R                   $ )z-Return whether antialiased rendering is used.)r   r   s    r9   get_antialiasedLine2D.get_antialiasedz  s       r;   c                     U R                   $ )z8
Return the line color.

See also `~.Line2D.set_color`.
)r   r   s    r9   	get_colorLine2D.get_color~  s     {{r;   c                     U R                   $ )z;
Return the drawstyle.

See also `~.Line2D.set_drawstyle`.
)r   r   s    r9   r  Line2D.get_drawstyle  r=  r;   c                     U R                   $ )z>
Return the line gapcolor.

See also `~.Line2D.set_gapcolor`.
)r   r   s    r9   get_gapcolorLine2D.get_gapcolor  s     ~~r;   c                     U R                   $ )z;
Return the linestyle.

See also `~.Line2D.set_linestyle`.
r  r   s    r9   get_linestyleLine2D.get_linestyle  r=  r;   c                     U R                   $ )zE
Return the linewidth in points.

See also `~.Line2D.set_linewidth`.
)r   r   s    r9   get_linewidthLine2D.get_linewidth  r=  r;   c                 6    U R                   R                  5       $ )z:
Return the line marker.

See also `~.Line2D.set_marker`.
)r   r2  r   s    r9   r2  Line2D.get_marker  s     ||&&((r;   c                 n   U R                   n[        R                  " US5      (       a  [        R                  S   (       ah  U R
                  R                  5       S;   a  U R                  $ U R
                  R                  5       (       a  U R
                  R                  5       S:w  a  gU R                  $ U$ )zI
Return the marker edge color.

See also `~.Line2D.set_markeredgecolor`.
r  z_internal.classic_mode).r   r   k)
r   r   r  r1   r2   r   r2  r   	is_filledr.  )r   r   s     r9   r  Line2D.get_markeredgecolor  s     ##C((||45<<**,
:;;&LL**,, LL668FB;;Jr;   c                     U R                   $ )zS
Return the marker edge width in points.

See also `~.Line2D.set_markeredgewidth`.
)r   r   s    r9   get_markeredgewidthLine2D.get_markeredgewidth  s     $$$r;   c                     U R                   R                  5       S:X  a  gU(       a  U R                  OU R                  n[        R
                  " US5      (       a  U R                  $ U$ )Nr   r  )r   r.  r   r   r   r  r   )r   r  fcs      r9   r  Line2D._get_markerfacecolor  sQ    <<%%'61),T%%$2G2G!!"f--;;Ir;   c                      U R                  SS9$ )zI
Return the marker face color.

See also `~.Line2D.set_markerfacecolor`.
Fr  r  r   s    r9   r  Line2D.get_markerfacecolor  s     ((U(33r;   c                      U R                  SS9$ )zV
Return the alternate marker face color.

See also `~.Line2D.set_markerfacecoloralt`.
Tr  r  r   s    r9   get_markerfacecoloraltLine2D.get_markerfacecoloralt  s     ((T(22r;   c                     U R                   $ )zH
Return the marker size in points.

See also `~.Line2D.set_markersize`.
)r   r   s    r9   get_markersizeLine2D.get_markersize  r)  r;   c                 >    U R                  US9U R                  US94$ )ze
Return the line data as an ``(xdata, ydata)`` pair.

If *orig* is *True*, return the original data.
)orig)	get_xdata	get_ydatar   r  s     r9   get_dataLine2D.get_data  s%     ~~4~($..d.*CCCr;   c                     U(       a  U R                   $ U R                  (       a  U R                  5         U R                  $ )z\
Return the xdata.

If *orig* is *True*, return the original data, else the
processed data.
)r   r   r  r   r  s     r9   r  Line2D.get_xdata  *     ;;>>LLNwwr;   c                     U(       a  U R                   $ U R                  (       a  U R                  5         U R                  $ )z\
Return the ydata.

If *orig* is *True*, return the original data, else the
processed data.
)r   r   r  r   r  s     r9   r  Line2D.get_ydata  r  r;   c                 ~    U R                   (       d  U R                  (       a  U R                  5         U R                  $ )z=Return the `~matplotlib.path.Path` associated with this line.)r   r   r  r   r   s    r9   r  Line2D.get_path  s"    >>T^^LLNzzr;   c                 ~    U R                   (       d  U R                  (       a  U R                  5         U R                  $ )z'Return the *xy* data as a (N, 2) array.)r   r   r  r   r   s    r9   rE  Line2D.get_xydata  s!    >>T^^LLNxxr;   c                 >    U R                   U:w  a  SU l        Xl         g)zK
Set whether to use antialiased rendering.

Parameters
----------
b : bool
TN)r   r3  )r   bs     r9   r   Line2D.set_antialiased  s     !DJr;   c                 F    [         R                  " US9  Xl        SU l        g)zL
Set the color of the line.

Parameters
----------
color : :mpltype:`color`
r   TN)r  _check_color_liker   r3  )r   r   s     r9   r   Line2D.set_color#  s     	!!.
r;   c                     Uc  Sn[         R                  " U R                  US9  U R                  U:w  a  SU l        SU l        Xl        g)a  
Set the drawstyle of the plot.

The drawstyle determines how the points are connected.

Parameters
----------
drawstyle : {'default', 'steps', 'steps-pre', 'steps-mid', 'steps-post'}, default: 'default'
    For 'default', the points are connected with straight lines.

    The steps variants connect the points with step-like lines,
    i.e. horizontal lines with vertical steps. They differ in the
    location of the step:

    - 'steps-pre': The step is at the beginning of the line segment,
      i.e. the line will be at the y-value of point to the right.
    - 'steps-mid': The step is halfway between the points.
    - 'steps-post: The step is at the end of the line segment,
      i.e. the line will be at the y-value of the point to the left.
    - 'steps' is equal to 'steps-pre' and is maintained for
      backward-compatibility.

    For examples see :doc:`/gallery/lines_bars_and_markers/step_demo`.
Nr   )r   T)r   check_in_list
drawStylesr   r3  r   )r   r   s     r9   r   Line2D.set_drawstyle/  sB    4 !I4??i@??i'DJ!DN#r;   c                 L    Ub  [         R                  " US9  Xl        SU l        g)a  
Set a color to fill the gaps in the dashed line style.

.. note::

    Striped lines are created by drawing two interleaved dashed lines.
    There can be overlaps between those two, which may result in
    artifacts when using transparency.

    This functionality is experimental and may change.

Parameters
----------
gapcolor : :mpltype:`color` or None
    The color with which to fill the gaps. If None, the gaps are
    unfilled.
Nr  T)r  r  r   r3  )r   r   s     r9   r   Line2D.set_gapcolorR  s$    $ %%H5!
r;   c                     [        U5      nU R                  U:w  a  SU l        Xl        [        / U R                  QUP76 U l        g)z[
Set the line width in points.

Parameters
----------
w : float
    Line width, in points.
TN)rc  r   r3  rG   r   r   )r   r  s     r9   r   Line2D.set_linewidthi  s@     !H??aDJ*KD,G,GKKr;   c                 R   [        U[        5      (       aN  US;   a  Sn[        R                  " / U R                  Q[
        QUS9  XR                  ;  a	  [
        U   nXl        OSU l        [        U5      U l        [        / U R                  QU R                  P76 U l        SU l        g)a  
Set the linestyle of the line.

Parameters
----------
ls : {'-', '--', '-.', ':', '', (offset, on-off-seq), ...}
    Possible values:

    - A string:

      ==========================================  =================
      linestyle                                   description
      ==========================================  =================
      ``'-'`` or ``'solid'``                      solid line
      ``'--'`` or  ``'dashed'``                   dashed line
      ``'-.'`` or  ``'dashdot'``                  dash-dotted line
      ``':'`` or ``'dotted'``                     dotted line
      ``'none'``, ``'None'``, ``' '``, or ``''``  draw nothing
      ==========================================  =================

    - Alternatively a dash tuple of the following form can be
      provided::

          (offset, onoffseq)

      where ``onoffseq`` is an even length tuple of on and off ink
      in points. See also :meth:`set_dashes`.

    For examples see :doc:`/gallery/lines_bars_and_markers/linestyles`.
)r   r   r   r'   )r   r   TN)r-   r.   r   r  r  r   r  r:   r   rG   r   r   r3  )r   r   s     r9   r   Line2D.set_linestylex  s    > b#&&@!1!1@K@RH))) _ O"DO&7&;#* ;((;*.//;
r;   c                 b    [        XR                  R                  5       5      U l        SU l        g)z
Set the line marker.

Parameters
----------
marker : marker style string, `~.path.Path` or `~.markers.MarkerStyle`
    See `~matplotlib.markers` for full description of possible
    arguments.
TN)r   r   r.  r3  )r   r   s     r9   r1  Line2D.set_marker  s$     #6<<+E+E+GH
r;   c                 $   Uc  U(       a  [         R                  SU 3   OSnSU 3n[        X5      nUc  SU l        OGXS:g  n[	        U[
        R                  5      (       a  UR                  5       (       a  OU(       a  SU l        [        XU5        g )Nr+   r  _T)	r1   r2   getattrr3  r-   rK   ndarrayrl  setattr)r   rg  has_rcdefaultvalattrcurrentneqs          r9   _set_markercolorLine2D._set_markercolor  su    ;3@#,,v/fC4&z$%?DJ.C&sBJJ77swwyyS!
C r;   c                 *    U R                  SSU5        g)zI
Set the marker edge color.

Parameters
----------
ec : :mpltype:`color`
r   TNr  )r   ecs     r9   r   Line2D.set_markeredgecolor       	/r:r;   c                 *    U R                  SSU5        g)zI
Set the marker face color.

Parameters
----------
fc : :mpltype:`color`
r   TNr   r   r  s     r9   r   Line2D.set_markerfacecolor  r#  r;   c                 *    U R                  SSU5        g)zS
Set the alternate marker face color.

Parameters
----------
fc : :mpltype:`color`
r   FNr   r%  s     r9   r   Line2D.set_markerfacecoloralt  s     	2E2>r;   c                 j    Uc  [         R                  S   nU R                  U:w  a  SU l        Xl        g)zk
Set the marker edge width in points.

Parameters
----------
ew : float
     Marker edge width, in points.
Nzlines.markeredgewidthT)r1   r2   r   r3  )r   ews     r9   r   Line2D.set_markeredgewidth  s3     :56B  B&DJ "r;   c                 T    [        U5      nU R                  U:w  a  SU l        Xl        g)z_
Set the marker size in points.

Parameters
----------
sz : float
     Marker size, in points.
TN)rc  r   r3  )r   szs     r9   r   Line2D.set_markersize  s(     2Yr!DJr;   c                     [         R                  " U5      (       d  [        S5      e[        R                  " U5      U l        SU l        SU l        g)ze
Set the data array for x.

Parameters
----------
x : 1D array

See Also
--------
set_data
set_ydata
zx must be a sequenceTN)rK   ry   r   rm  r   r   r3  )r   rE   s     r9   rQ  Line2D.set_xdata  :     {{1~~566iil
r;   c                     [         R                  " U5      (       d  [        S5      e[        R                  " U5      U l        SU l        SU l        g)ze
Set the data array for y.

Parameters
----------
y : 1D array

See Also
--------
set_data
set_xdata
zy must be a sequenceTN)rK   ry   r   rm  r   r   r3  )r   rQ   s     r9   rR  Line2D.set_ydata  r1  r;   c                 x    US:X  d  [        U5      S:X  a  U R                  S5        gU R                  SU45        g)a  
Set the dash sequence.

The dash sequence is a sequence of floats of even length describing
the length of dashes and spaces in points.

For example, (5, 2, 1, 2) describes a sequence of 5 point and 1 point
dashes separated by 2 point spaces.

See also `~.Line2D.set_gapcolor`, which allows those spaces to be
filled with a color.

Parameters
----------
seq : sequence of floats (on/off ink in points) or (None, None)
    If *seq* is empty or ``(None, None)``, the linestyle will be set
    to solid.
)NNr   r   N)rJ   r   )r   seqs     r9   r  Line2D.set_dashes"  s6    & ,#c(a-s#3x(r;   c                   > [         TU ]  U5        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                  U l        UR                  U l        UR                  U l        UR                  U l        UR                   U l        UR                  U l        [#        UR$                  S9U l        UR&                  U l        g)z%Copy properties from *other* to self.)r   N)r   update_fromr  r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r   otherr  s     r9   r8  Line2D.update_from:  s   E"****ll ,, % 6 6#(#<#<  % 6 6 % 6 6&+&B&B#"00"00#22#22$44**"%--8**r;   c                 T    [        U5      nU R                  U:w  a  SU l        X l        g)z
How to join segments of the line if it `~Line2D.is_dashed`.

The default joinstyle is :rc:`lines.dash_joinstyle`.

Parameters
----------
s : `.JoinStyle` or %(JoinStyle)s
TN)r   r   r3  r   sjss      r9   r   Line2D.set_dash_joinstyleQ  s(     q\"$DJ r;   c                 T    [        U5      nU R                  U:w  a  SU l        X l        g)z
How to join segments if the line is solid (not `~Line2D.is_dashed`).

The default joinstyle is :rc:`lines.solid_joinstyle`.

Parameters
----------
s : `.JoinStyle` or %(JoinStyle)s
TN)r   r   r3  r<  s      r9   r   Line2D.set_solid_joinstylea  s(     q\2%DJ!r;   c                 .    U R                   R                  $ )zT
Return the `.JoinStyle` for dashed lines.

See also `~.Line2D.set_dash_joinstyle`.
)r   rg  r   s    r9   get_dash_joinstyleLine2D.get_dash_joinstyleq       ""'''r;   c                 .    U R                   R                  $ )zT
Return the `.JoinStyle` for solid lines.

See also `~.Line2D.set_solid_joinstyle`.
)r   rg  r   s    r9   get_solid_joinstyleLine2D.get_solid_joinstyley  s     ##(((r;   c                 T    [        U5      nU R                  U:w  a  SU l        X l        g)z
How to draw the end caps if the line is `~Line2D.is_dashed`.

The default capstyle is :rc:`lines.dash_capstyle`.

Parameters
----------
s : `.CapStyle` or %(CapStyle)s
TN)r   r   r3  r   r=  css      r9   r   Line2D.set_dash_capstyle  s(     a[#DJr;   c                 T    [        U5      nU R                  U:w  a  SU l        X l        g)z
How to draw the end caps if the line is solid (not `~Line2D.is_dashed`)

The default capstyle is :rc:`lines.solid_capstyle`.

Parameters
----------
s : `.CapStyle` or %(CapStyle)s
TN)r   r   r3  rJ  s      r9   r   Line2D.set_solid_capstyle  s(     a["$DJ r;   c                 .    U R                   R                  $ )zR
Return the `.CapStyle` for dashed lines.

See also `~.Line2D.set_dash_capstyle`.
)r   rg  r   s    r9   get_dash_capstyleLine2D.get_dash_capstyle  s     !!&&&r;   c                 .    U R                   R                  $ )zR
Return the `.CapStyle` for solid lines.

See also `~.Line2D.set_solid_capstyle`.
)r   rg  r   s    r9   get_solid_capstyleLine2D.get_solid_capstyle  rE  r;   c                      U R                   S;   $ )z
Return whether line has a dashed linestyle.

A custom linestyle is assumed to be dashed, we do not inspect the
``onoffseq`` directly.

See also `~.Line2D.set_linestyle`.
)r   r   r   r  r   s    r9   r  Line2D.is_dashed  s     "333r;   )$r   r   r   r   r   r   r   r   r   r  r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r   r   r   r  r   r   r   r   r   r   r3  N)F)T)X__name__
__module____qualname____firstlineno____doc__
lineStylesr  _drawStyles_l_drawStyles_sr	  drawStyleKeysr   markersfilled_markers
fillstyles
fillStyleszorderre  r   r   r$  r'  r+  propertyr   r.  r5  r   r;  rA  rG  rN  r  rW  r  rw  r  r|  r   r  r  r  r  r  r  r  r2  r  r  r  r  r  r  r  r  r  r  rE  r   r   r   r   r   r   r
   interpdr1  r  r   r   r   r   r   rQ  rR  r  r8  r   r   rC  rG  r   r   rP  rS  r  __static_attributes____classcell__r  s   @r9   r   r      s       J $''(	M 	"M
 4M3]3J4m4m4M !!G //N''JF#=   !%!%!%$*!# $ $!%'K$ K$ZD+L & ..9J,(9v	*"+ZN&! O Ob!)$%43 D

!$F.L+Z  !;;?#&&)0+. ! ! " "()     ! !'(	4 	4r;   r   c                   b   ^  \ rS rSrSrU 4S jrS rU 4S jrS rS r	S r
S	 rS
 rS rSrU =r$ )AxLinei  zc
A helper class that implements `~.Axes.axline`, by recomputing the artist
transform at draw time.
c                    > [         TU ]  " SS/SS/40 UD6  Uc  Ub  Ub  Ub  [        S5      eX0l        Xl        X l        g)a  
Parameters
----------
xy1 : (float, float)
    The first set of (x, y) coordinates for the line to pass through.
xy2 : (float, float) or None
    The second set of (x, y) coordinates for the line to pass through.
    Both *xy2* and *slope* must be passed, but one of them must be None.
slope : float or None
    The slope of the line. Both *xy2* and *slope* must be passed, but one of
    them must be None.
r   r   Nz.Exactly one of 'xy2' and 'slope' must be given)r   r   	TypeError_slope_xy1_xy2)r   xy1xy2sloper  r  s        r9   r   AxLine.__init__  sW     	!Q!Q262KEME$5@B B 		r;   c                 0   U R                   nU R                  UR                  -
  UR                  -   nU R                  bl  UR                  U R                  U R                  /5      u  u  p4u  pVXS-
  nXd-
  nUS:X  a+  US:X  a  [        SX54 SXF4 S35      e[        R                  n	O.X-  n	O)UR                  U R                  5      u  p4U R                  n	UR                  R                  UR                  5      u  u  pu  pU	S:X  a  X4nX4nO[[        R                  " U	5      (       a  X;4nX=4nO9[        XX-
  U	-  -   4XX-
  U	-  -   4X;U-
  U	-  -   U4X=U-
  U	-  -   U4/5      u  npn[        [        X/5      5      UR                   -   UR"                  -   $ )Nr   z3Cannot draw a line through two identical points (x=z, y=r   )rd  
_transformrj  
transScalerq  rn   rp  r3   rK   infro  viewLimisinfsortedr   r   transLimitsrs   )r   r~   points_transformr   r   x2y2rV   rW   rt  vxlovylovxhivyhir   stopr  s                    r9   rJ  AxLine.get_transform  s   YY??R\\9BMMI99  !**DIItyy+AB HRhrBBQw7$!hZtRH:Q89 9  &//		:FBKKE%']]%<%<RZZ%H"lt A:HE8DXXe__HE8D &TY%//0TY%//0byE))40byE))40	( !AuA  e] 34..!#%<<0 	1r;   c                 2   > S U l         [        TU ]	  U5        g rW  )r   r   r  )r   rL  r  s     r9   r  AxLine.draw  s    !%Xr;   c                     U R                   $ )z#Return the *xy1* value of the line.)rp  r   s    r9   get_xy1AxLine.get_xy1      yyr;   c                     U R                   $ )z#Return the *xy2* value of the line.)rq  r   s    r9   get_xy2AxLine.get_xy2  r  r;   c                     U R                   $ )z%Return the *slope* value of the line.)ro  r   s    r9   	get_slopeAxLine.get_slope  s    {{r;   c                     [         R                  " S S /U /UQ70 UD6nSU;   a   [         R                  " SSS9  US   US   4nOUS   nX@l        g	)
z|
Set the *xy1* value of the line.

Parameters
----------
xy1 : tuple[float, float]
    Points for the line to pass through.
c                     [        5       $ rW  localsr   rE   rQ   s      r9   <lambda> AxLine.set_xy1.<locals>.<lambda>  s    vxr;   c                     [        5       $ rW  r  )r   rr  s     r9   r  r    s    68r;   rE   3.10zpPassing x and y separately to AxLine.set_xy1 is deprecated since %(since)s; pass them as a single tuple instead.messagerQ   rr  N)r   select_matching_signaturewarn_deprecatedrp  )r   rS  r  paramsrr  s        r9   set_xy1AxLine.set_xy1  st     //')C1
"" " &=  BD +vc{*C-C	r;   c                     U R                   cQ  [        R                  " S S /U /UQ70 UD6nSU;   a   [        R                  " SSS9  US   US   4nOUS	   nX@l        g[        S
5      e)a&  
Set the *xy2* value of the line.

.. note::

    You can only set *xy2* if the line was created using the *xy2*
    parameter. If the line was created using *slope*, please use
    `~.AxLine.set_slope`.

Parameters
----------
xy2 : tuple[float, float]
    Points for the line to pass through.
Nc                     [        5       $ rW  r  r  s      r9   r   AxLine.set_xy2.<locals>.<lambda>:  s    68r;   c                     [        5       $ rW  r  )r   rs  s     r9   r  r  :  s    vxr;   rE   r  zpPassing x and y separately to AxLine.set_xy2 is deprecated since %(since)s; pass them as a single tuple instead.r  rQ   rs  z]Cannot set an 'xy2' value while 'slope' is set; they differ but their functionalities overlap)ro  r   r  r  rq  r3   )r   rS  r  r  rs  s        r9   set_xy2AxLine.set_xy2)  s     ;;33+-G5&&$&F f}$$VFH Sk6#;.UmI N O Or;   c                 @    U R                   c  Xl        g[        S5      e)a  
Set the *slope* value of the line.

.. note::

    You can only set *slope* if the line was created using the *slope*
    parameter. If the line was created using *xy2*, please use
    `~.AxLine.set_xy2`.

Parameters
----------
slope : float
    The slope of the line.
Nz\Cannot set a 'slope' value while 'xy2' is set; they differ but their functionalities overlap)rq  ro  r3   )r   rt  s     r9   	set_slopeAxLine.set_slopeH  s(     99K N O Or;   )ro  r   rp  rq  )rX  rY  rZ  r[  r\  r   rJ  r  r  r  r  r  r  r  rh  ri  rj  s   @r9   rl  rl    s>    
0'1R*O>O Or;   rl  c                   <    \ rS rSrSrS r\" S 5      rS rS r	Sr
g)	VertexSelectori^  aB  
Manage the callbacks to maintain a list of selected vertices for `.Line2D`.
Derived classes should override the `process_selected` method to do
something with the picks.

Here is an example which highlights the selected verts with red circles::

    import numpy as np
    import matplotlib.pyplot as plt
    import matplotlib.lines as lines

    class HighlightSelected(lines.VertexSelector):
        def __init__(self, line, fmt='ro', **kwargs):
            super().__init__(line)
            self.markers, = self.axes.plot([], [], fmt, **kwargs)

        def process_selected(self, ind, xs, ys):
            self.markers.set_data(xs, ys)
            self.canvas.draw()

    fig, ax = plt.subplots()
    x, y = np.random.rand(2, 30)
    line, = ax.plot(x, y, 'bs-', picker=5)

    selector = HighlightSelected(line)
    plt.show()
c                 "   UR                   c  [        S5      eUR                  5       c  [        S5      eUR                   U l         Xl        U R                  R
                  R                  SU R                  5      U l        [        5       U l
        g)z
Parameters
----------
line : `~matplotlib.lines.Line2D`
    The line must already have been added to an `~.axes.Axes` and must
    have its picker property set.
Nz'You must first add the line to the Axesz2You must first set the picker property of the line
pick_event)rd  r   
get_pickerlinecanvas	callbacks_connect_picklableonpickcidsetr  )r   r  s     r9   r   VertexSelector.__init__{  sw     99HII??$  - . .II		;;((;;$++'5r;   c                 H    U R                   R                  SS9R                  $ )NTr
  )rd  r  r  r   s    r9   r  VertexSelector.<lambda>  s    499#7#7T#7#B#I#Ir;   c                     g)z
Default "do nothing" implementation of the `process_selected` method.

Parameters
----------
ind : list of int
    The indices of the selected vertices.
xs, ys : array-like
    The coordinates of the selected vertices.
Nr>   )r   r  xsyss       r9   process_selectedVertexSelector.process_selected  s     	r;   c                    UR                   U R                  La  gU =R                  [        UR                  5      -  sl        [	        U R                  5      nU R                  R                  5       u  p4U R                  X#U   XB   5        g)z<When the line is picked, update the set of selected indices.N)artistr  r  r  r|  r  r  )r   eventr  r  r  s        r9   r  VertexSelector.onpick  sc    <<tyy(C		N"TXXyy))+c:uz:r;   )rd  r  r  r  N)rX  rY  rZ  r[  r\  r   rf  r  r  r  rh  r>   r;   r9   r  r  ^  s#    8& IJF;r;   r  )Cr\  rm  numbersr   r   r   loggingnumpyrK   
matplotlibr1   r   r   r   r	   r  r
   r  r   r   r   r   r   r   ra  r   r  r   
transformsr   r   r   _enumsr   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   	getLoggerrX  r  r:   rA   rG   ra   r   rg  define_aliasesr   rl  r  r  r]  lineMarkersr	  rc  rd  r>   r;   r9   <module>r     sE    * *    8 8 /G G    > > ' + + + +
 "<	("+J\O~ 6Uwww#*& U4V U4 U4p&^OV ^OBF; F;R 
!!
##
r;   