Ë
    µ2Úi_8  ã                   óD  — d Z ddlZddlZddlZddlmZ ddlmZ ddlZddl	m
Z
 ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZmZ d
„ Zej@                  jC                  d¬«      d„ «       Z"d„ Z#d„ Z$ edgdd¬«      d„ «       Z%d„ Z&d„ Z'd„ Z(d„ Z) edgd¬«      d„ «       Z* ed¬«      d„ «       Z+d„ Z,d „ Z- ed!gdd" ej\                  «       d#v rd$nd¬%«      d&„ «       Z/ ed'gd¬«      d(„ «       Z0d)„ Z1 ed*gd+¬,«      d-„ «       Z2d.„ Z3 e«       d/„ «       Z4ej@                  jk                  d0d1d2g«       ed¬«      d3„ «       «       Z6d4„ Z7d5„ Z8 ed6gdd"¬7«      d8„ «       Z9 e«       d9„ «       Z:d:„ Z; e«       d;„ «       Z< ed<g¬«      d=„ «       Z=d>„ Z>y)?z%
Tests specific to the lines module.
é    N)ÚSimpleNamespace)Úcycler)Úassert_array_equal)Ú_path)ÚMarkerStyle)ÚPath)Úimage_comparisonÚcheck_figures_equalc            	      ó¶   — d\  } }t        j                  ddg«      t        j                  ddg«      }}d}t        t        j                  | ||||«      dg«       y)zTest a problematic case.)i)  i†  g     H�@g     ÀW@g     ˜�@gÃõ(\�Â@r   N)ÚnpÚarrayr   ÚmlinesÚsegment_hits)ÚcxÚcyÚxÚyÚradiuss        úR/var/www/html/acx/venv/lib/python3.12/site-packages/matplotlib/tests/test_lines.pyÚtest_segment_hitsr      sR   € à�F€BˆÜ�8‰8�T˜4�LÓ!¤2§8¡8¨S°$¨KÓ#8€q€AØ€FÜ”v×*Ñ*¨2¨r°1°a¸Ó@À1À#ÕFó    é   )Úrerunsc                  ó&  — d} t        j                  dd| «      }t         j                  j                  | ¬«      }t	        j
                  «       }t	        j                  «       }t        j                  ||«      }|j                  d«       t        t        j                  |j                  j                  dd¬«      «      }|j                  |«       t        t        j                  |j                  j                  dd¬«      «      }||z  }d}	||	k  sJ ‚y	)
ac  
    GitHub issue #1256 identified a bug in Line.draw method

    Despite visibility attribute set to False, the draw method was not
    returning early enough and some pre-rendering code was executed
    though not necessary.

    Consequence was an excessive draw time for invisible Line instances
    holding a large number of points (Npts> 10**6)
    i€–˜ r   é   ©ÚsizeFr   )ÚnumberÚrepeaté   N)r   ÚlinspaceÚrandomÚnormalÚpltÚfigureÚsubplotr   ÚLine2DÚset_visibleÚminÚtimeitr   ÚcanvasÚdrawÚadd_line)
ÚNr   r   ÚfigÚaxÚlÚ	t_no_lineÚt_invisible_lineÚslowdown_factorÚslowdown_thresholds
             r   Útest_invisible_Line_renderingr6   $   sÙ   € ð 	€AÜ
�‰�A�q˜!Ó€AÜ
�	‰	×Ñ˜aÐÓ €Aô �*‰*‹,€CÜ	�‰‹€Bô 	�‰�a˜Ó€AØ‡M�M�%Ôô
 ”F—M‘M #§*¡*§/¡/¸!ÀAÔFÓG€Ið ‡K�K�„Nô œ6Ÿ=™=¨¯©¯©ÀÈ1ÔMÓNÐð '¨Ñ2€OØÐØÐ/Ò/Ð/Ñ/r   c                  óÔ   — t        j                  «       \  } }t        j                  j	                  d«       |j                  t        j                  j                  dd«      dg¬«       y ©Nr   é   é   ©r   )r   r   )Ú
linestyles©r$   Úsubplotsr   r"   ÚseedÚcontourÚrandn©r/   r0   s     r   Útest_set_line_coll_dashrC   P   sD   € Ü�l‰l‹n�G€CˆÜ‡I�I‡N�N�1Ôð ‡J�JŒr�y‰y�‰˜r 2Ó&°K°=€JÕAr   c                  ól  — t        j                  t        d¬«      5  t        j                  dg «       d d d «       t        j                  t        d¬«      5  t        j                  g d«       d d d «       t        j                  g g «      } t        j
                  t        j                  «      5  | j                  d«       d d d «       t        j
                  t        j                  «      5  | j                  d«       d d d «       y # 1 sw Y   ŒÔxY w# 1 sw Y   Œ¦xY w# 1 sw Y   Œ_xY w# 1 sw Y   y xY w)Nzxdata must be©Úmatchr   zydata must ber   )
ÚpytestÚraisesÚRuntimeErrorr   r'   ÚwarnsÚmplÚMatplotlibDeprecationWarningÚ	set_xdataÚ	set_ydata©Úlines    r   Útest_invalid_line_datarQ   X   så   € Ü	�‰”|¨?Ô	;ñ Ü�‰�a˜Ô÷ä	�‰”|¨?Ô	;ñ Ü�‰�b˜!Ô÷ô �=‰=˜˜RÓ €Dô 
�‰”c×6Ñ6Ó	7ñ Ø�‰�qÔ÷ô 
�‰”c×6Ñ6Ó	7ñ Ø�‰�qÔ÷ð ÷ð ú÷ð ú÷ð ú÷ð ús/   œDÁDÂ.DÃ+D*ÄDÄDÄD'Ä*D3Úline_dashesTgü©ñÒMb`?)Úremove_textÚtolc                  ól   — t        j                  «       \  } }|j                  t        d«      dd¬«       y )Né
   r;   é   ©Ú	linestyleÚlw)r$   r>   ÚplotÚrangerB   s     r   Útest_line_dashesr]   h   s)   € ô �l‰l‹n�G€Cˆà‡G�GŒE�"‹I °€GÕ3r   c                  ó~  — t        j                  «       \  } }|j                  t        d«      d¬«       |j                  t        d«      d¬«       |j                  t        d«      d¬«       |j                  t        d«      d¬«       |j                  t        d«      d¬«       | j                  j                  «        y )NrV   Únone)ÚcolorÚrz.3)r   r   r   r   )r   r   r   ©r$   r>   r[   r\   r+   r,   rB   s     r   Útest_line_colorsrc   q   sƒ   € Ü�l‰l‹n�G€CˆØ‡G�GŒE�"‹I˜V€GÔ$Ø‡G�GŒE�"‹I˜S€GÔ!Ø‡G�GŒE�"‹I˜T€GÔ"Ø‡G�GŒE�"‹I˜\€GÔ*Ø‡G�GŒE�"‹I˜Y€GÔ'Ø‡J�J‡O�OÕr   c                  ó®   — t        j                  g g «      } t        j                  t        «      5  | j                  d«       d d d «       y # 1 sw Y   y xY w©NÚfoobar)r   r'   rG   rH   Ú
ValueErrorÚ	set_colorrO   s    r   Útest_valid_colorsri   {   s?   € Ü�=‰=˜˜RÓ €DÜ	�‰”zÓ	"ñ !Ø�‰�xÔ ÷!÷ !ñ !úó   °AÁAc                  óÆ   — t        j                  «       \  } }ddddddddd	d
dg ffD ]  }|j                  t        d«      |¬«       Œ  | j                  j                  «        y )Nú-Úsolidú--Údashedz-.Údashdotú:Údotted)r   N)r   © r   rV   )rY   rb   )r/   r0   Úlss      r   Útest_linestyle_variantsru   �   se   € Ü�l‰l‹n�G€CˆØ�G˜T 8Ø�Y  XØ˜' A r 7ðò )ˆð 	�‰”�b“	 RˆÕ(ð	)ð
 ‡J�J‡O�OÕr   c                  ó®   — t        j                  g g «      } t        j                  t        «      5  | j                  d«       d d d «       y # 1 sw Y   y xY w)NÚaardvark)r   r'   rG   rH   rg   Úset_linestylerO   s    r   Útest_valid_linestylesry   ‹   sA   € Ü�=‰=˜˜RÓ €DÜ	�‰”zÓ	"ñ 'Ø×Ñ˜:Ô&÷'÷ 'ñ 'úrj   zdrawstyle_variants.png)rS   c                  óÖ   — t        j                  d«      \  } }g d¢}t        |j                  |«      D ]4  \  }}|j	                  t        d«      |¬«       |j                  dd¬«       Œ6 y )Né   )Údefaultz	steps-midú	steps-prez
steps-postÚstepsNéÐ  ©Ú	drawstyle)r   r    )ÚxlimÚylim)r$   r>   ÚzipÚflatr[   r\   Úset)r/   ÚaxsÚdssr0   Údss        r   Útest_drawstyle_variantsrŠ   ‘   s\   € ä�|‰|˜A‹�H€CˆÚ
L€Cô
 �c—h‘h Ó$ò )‰ˆˆBØ
�‰”�d“ rˆÔ*Ø
�‰�F ˆÕ(ñ)r   )Úpng)Ú
extensionsc                 ó"  — | j                  «       }t        j                  d«      }|j                  |dz   |«       |j                  «       }t	        j
                  «       j                  dd«      }|j                  ||||j                  z   ¬«       y )Nr   g     @Ÿ@ç        )Ú	transform)Úadd_subplotr   Úaranger[   ÚmtransformsÚAffine2DÚ	translateÚ	transData)Úfig_refÚfig_testr0   r   Úts        r   Útest_no_subslice_with_transformr™   ž   sr   € à	×	Ñ	Ó	€BÜ
�	‰	�$‹€AØ‡G�GˆA�‰H�aÔà	×	Ñ	Ó	€BÜ×ÑÓ×(Ñ(¨°Ó5€AØ‡G�GˆAˆq˜A˜bŸl™l™N€GÕ+r   c                  ó®   — t        j                  g g «      } t        j                  t        «      5  | j                  d«       d d d «       y # 1 sw Y   y xY wre   )r   r'   rG   rH   rg   Úset_drawstylerO   s    r   Útest_valid_drawstylesrœ   ©   sA   € Ü�=‰=˜˜RÓ €DÜ	�‰”zÓ	"ñ %Ø×Ñ˜8Ô$÷%÷ %ñ %úrj   c                  óè  — t        j                  ddt         j                  z  d«      } t        j                  | «      }t	        j
                  «       \  }}|j                  | |«      \  }|j                  d«       t        |j                  «       j                  «      dt        | «      z  dz
  k(  sJ ‚|j                  d«       t        |j                  «       j                  «      t        | «      k(  sJ ‚y )Nr   r    rV   r}   r   r|   )r   r!   ÚpiÚsinr$   r>   r[   r›   ÚlenÚget_pathÚvertices)r   r   r/   r0   rP   s        r   Útest_set_drawstyler£   ¯   s³   € Ü
�‰�A�qœŸ™‘w Ó#€AÜ
�‰ˆq‹	€Aä�l‰l‹n�G€CˆØ�G‰G�A�q‹M�E€DØ×Ñ�{Ô#Üˆt�}‰}‹×'Ñ'Ó(¨A¬c°!«f©H°Q©JÒ6Ð6Ð6à×Ñ�yÔ!Üˆt�}‰}‹×'Ñ'Ó(¬C°«FÒ2Ð2Ñ2r   Úline_collection_dashesÚmpl20)Úaarch64Úppc64leÚs390xgÍÌÌÌÌÌä?)rS   ÚstylerT   c                  óÔ   — t        j                  «       \  } }t        j                  j	                  d«       |j                  t        j                  j                  dd«      dg¬«       y r8   r=   rB   s     r   Útest_set_line_coll_dash_imager«   ¼   sD   € ô �l‰l‹n�G€CˆÜ‡I�I‡N�N�1ÔØ‡J�JŒr�y‰y�‰˜r 2Ó&°K°=€JÕAr   zmarker_fill_styles.pngc                  ó2  — t        j                  g d¢dddddt        j                  g d¢«      g«      } d}t        j                  d	d	g«      }t        j                  d
dg«      }t	        j
                  «       \  }}t        d«      D ]i  \  }}t        t        j                  j                  «      D ]>  \  }}	t        | «      }
|j                  |dz  |z   ||z   d|dz  z  z   |d||	|	d|
|
d¬«       Œ@ Œk |j                  d
dg«       |j                  ddg«       y )N©r   r   r   Úgz#ff0000ÚcÚmr   )r   r   r   Ú
lightgreenr   r   é	   zov^<>8sp*hHDdPXrV   ç      à?r    r9   rW   )	ÚmarkerÚ
markersizeÚmarkerfacecoloraltÚ	fillstyleÚlabelÚ	linewidthr`   ÚmarkeredgecolorÚmarkeredgewidthg      @éûÿÿÿé›   )Ú	itertoolsÚcycler   r   r$   r>   Ú	enumerater   r'   Ú
fillStylesÚnextr[   Úset_ylimÚset_xlim)ÚcolorsÚaltcolorr   r   r/   r0   Újr´   ÚiÚfsr`   s              r   Útest_marker_fill_stylesrÊ   Å   s  € ä�_‰_ši¨¨i¸¸cÀ3Ü Ÿh™h¢yÓ1ð3ó 4€Fà€Hä
�‰�!�Q�Ó€AÜ
�‰�!�Q�Ó€AÜ�l‰l‹n�G€Cˆô Ð0Ó1ò '‰	ˆˆ6ÜœvŸ}™}×7Ñ7Ó8ò 	'‰EˆAˆrÜ˜“LˆEØ�G‰G�A˜‘F˜Q‘J  A¡¨¨a°!©e©Ñ 4Ø!Ø!Ø'/Ø ØØØØ$)Ø$%ð õ 	'ñ	'ð'ð ‡K�K��C�ÔØ‡K�K��S�	Õr   c                  ó¦   — t        j                  g d¢t        dd¬«      d¬«      \  } | j                  «       dk(  sJ ‚| j	                  «       dk(  sJ ‚y)z=Test that markerfacecolor does not override fillstyle='none'.©r   r   r    Úor_   )r·   Úred)r´   ÚmarkerfacecolorN)r$   r[   r   Úget_fillstyleÚget_markerfacecolor)r1   s    r   Útest_markerfacecolor_fillstylerÒ   å   sL   € ä	�‰’)¤K°¸vÔ$FØ"'ô
)�B€Aà�?‰?Ó Ò&Ð&Ð&Ø× Ñ Ó" fÒ,Ð,Ñ,r   Úscaled_linesr|   )r©   c            	      ó|  — t        j                  dd«      } t        j                  «       \  }}g d¢}t	        t
        j                  d   «      }t        t        ||«      «      D ]W  \  }\  }}t        j                  ddd«      D ]5  } |j                  | |t        j                  d«      z  d|z  z   f||d	œ|¤Ž Œ7 ŒY y )
Nr   é    )ro   rr   rp   úaxes.prop_cycler³   rV   é2   çš™™™™™¹?rX   )r   r!   r$   r>   r   Ú
matplotlibÚrcParamsrÀ   r„   r[   Úones)	Úthr/   r0   Úlins_stylesr   rÇ   rt   ÚstyrZ   s	            r   Útest_lw_scalingrß   í   s°   € ä	�‰�Q˜Ó	€BÜ�l‰l‹n�G€CˆÚ1€KÜ	”
×#Ñ#Ð$5Ñ6Ó	7€BÜ!¤# k°2Ó"6Ó7ò M‰ˆ‰9ˆB�Ü—+‘+˜b " bÓ)ò 	MˆBØˆB�G‰G�B˜œ"Ÿ'™' "›+™¨¨R©Ñ/ÐL¸2À"ÑLÈÓLñ	MñMr   c                  óÔ  — t        j                  t        j                  g d¢«      «      sJ ‚t        j                  t        j                  dt        j                  dg«      «      sJ ‚t        j                  ddgt        j                  gdz  z   ddgz   «      rJ ‚dt
        j                  j                  z  } t        j                  t        j                  g| z  t        | «      «       y )N©r   r    r   r   r   rW   éd   r   r    )r   Úis_sorted_and_has_non_nanr   r   Únanr   r'   Ú_subslice_optim_min_sizer$   r[   r\   )Úns    r   Útest_is_sorted_and_has_non_nanrç   ø   s¦   € Ü×*Ñ*¬2¯8©8²IÓ+>Ô?Ð?Ð?Ü×*Ñ*¬2¯8©8°Q¼¿¹À°NÓ+CÔDÐDÐDÜ×.Ñ.°°1¨v¼¿¹¸À3¹Ñ/FÈ!ÈQÈÑ/OÔPÐPÐPØ	ŒF�M‰M×2Ñ2Ñ2€AÜ‡H�HŒb�f‰fˆX˜‰\œ5 ›8Õ$r   c                 óš   — | j                  «       j                  ddgd«       |j                  «       j                  g d¢g d¢dddg¬«       y )Nr   r   z-or­   )r   r   r   r    ©Ú	markevery)r>   Ústepr[   ©r—   r–   s     r   Útest_step_markersrí      sC   € à×ÑÓ×Ñ˜a ˜V TÔ*Ø×ÑÓ×ÑšI¢y°$À1ÀaÀ&ÐÕIr   Úparentr%   Úaxesc                 óþ  ‡ ‡‡‡— t         j                  j                  d«       t        j                  ddd«      }t         j                  j	                  t        |«      «      }d ddg d¢ddgt        d	d
d«      t        j                  t        |«      «      |dkD     ddg	}g d¢}|dk(  r|d d }|d d }ˆ fd„}ˆfd„}nY|dk(  rTt        ‰ j                  dd«      j                  «      Št        ‰j                  dd«      j                  «      Šˆfd„}ˆfd„}|D ]  }	 |||	¬«       Œ |D ]Q  }	t        j                  t        |	«      «      j                  t        «      j                  t        «      }
 |||
¬«       ŒS y )Né*   r   r   é   é   )r    rW   )r   rW   é   éÿÿÿÿrW   rV   r    r³   ç333333Ó?)rö   çš™™™™™Ù?)	Ú11111111111111Ú10001000100010Ú00100001000010Ú01000100000100Ú10000000000001Ú00000101010000Ú01110001110110Ú11011011011110Ú01010011011101r%   éþÿÿÿc                óV   •— ‰j                  t        j                  | |d|¬«      «       y ©NrÍ   ©r´   rê   ©Ú
add_artistr   r'   )r   r   rê   r—   s      €r   Úadd_testz test_markevery.<locals>.add_test  s$   ø€ Ø×ÑÜ—‘˜a ¨3¸)ÔDõFr   c                óV   •— ‰j                  t        j                  | |d|¬«      «       y r  r  )r   r   rê   r–   s      €r   Úadd_refztest_markevery.<locals>.add_ref  s$   ø€ Ø×ÑÜ—‘˜a ¨3¸)ÔDõFr   rï   r   c                óB   •— t        ‰«      j                  | |d|¬«       y ©Nz-gDré   ©rÂ   r[   )r   r   rê   Úaxs_tests      €r   r  z test_markevery.<locals>.add_test&  s   ø€ Ü�‹N×Ñ  1 e°yÐÕAr   c                óB   •— t        ‰«      j                  | |d|¬«       y r  r  )r   r   rê   Úaxs_refs      €r   r	  ztest_markevery.<locals>.add_ref)  s   ø€ Ü�‹M×Ñ˜q ! U°iÐÕ@r   ré   )r   r"   r?   r!   Úrandr    Úslicer‘   Úiterr>   r…   r   ÚlistÚastypeÚintÚbool)r—   r–   rî   r   r   Ú
cases_testÚ	cases_refr  r	  ÚcaseÚmer  r  s   ``         @@r   Útest_markeveryr    sb  û€ ô ‡I�I‡N�N�2ÔÜ
�‰�A�q˜"Ó€AÜ
�	‰	�‰”s˜1“vÓ€Aà˜˜6¢:Ø�b�'œ5  B¨›?Ü—)‘)œC ›FÓ# A¨¡GÑ,Ø�zð#€JòG€Ið �Òà  �_ˆ
Ø˜c˜r�Nˆ	ô	Fõ	Fð 
�6Ò	Ü˜×)Ñ)¨!¨QÓ/×4Ñ4Ó5ˆÜ�w×'Ñ'¨¨1Ó-×2Ñ2Ó3ˆô	Bô	Að ò 'ˆÙ��A Ö&ð'ð ò $ˆÜ�X‰X”d˜4“jÓ!×(Ñ(¬Ó-×4Ñ4´TÓ:ˆÙ��1 Ö#ñ$r   c                  ó  — t        j                  «       } | j                  t        j                  ddgddgdd¬«      «       t        j                  t        «      5  | j                  j                  «        d d d «       y # 1 sw Y   y xY w)Nr   r   rÍ   r³   r  )
r$   r%   r  r   r'   rG   rH   rg   r+   r,   )r/   s    r   Ú.test_markevery_figure_line_unsupported_relsizer  4  s_   € Ü
�*‰*‹,€CØ‡N�N”6—=‘= ! Q ¨!¨Q¨¸ÀrÔJÔKÜ	�‰”zÓ	"ñ Ø�
‰
�‰Ô÷÷ ñ ús   ÁA>Á>Bc                  óô  — t        j                  «       \  } }|j                  g d¢t        d«      ¬«      \  }| j                  j                  «        |j                  «       dk(  sJ ‚|j                  d«       | j                  j                  «        |j                  t        d«      «       | j                  j                  «        t        j                  ddgddgdd	gg«      }|j                  g d
¢t        |«      d¬«      \  }|j                  g d¢|d¬«      \  }t        |j                  «       j                  |j                  «       t        |j                  «       j                  |j                  «       y )N)r    ró   r   ÚD)r´   ÚsrÍ   rõ   r   r   r    rÌ   é   )r´   Úms)r   r    r   )r$   r>   r[   r   r+   r,   Ú
get_markerÚ
set_markerr   Ú_create_closedr   r¢   )r/   r0   rP   Ú	triangle1Úline2Úline3s         r   Útest_marker_as_markerstyler)  ;  s  € Ü�l‰l‹n�G€CˆØ�G‰G’I¤k°#Ó&6ˆGÓ7�E€DØ‡J�J‡O�OÔØ�?‰?Ó Ò#Ð#Ð#ð 	‡O�O�CÔØ‡J�J‡O�OÔØ‡O�O”K Ó$Ô%Ø‡J�J‡O�OÔä×#Ñ# b¨" X°°2¨w¸¸A¸Ð$?Ó@€IØ�W‰W’Y¤{°9Ó'=À"ˆWÓE�F€EØ�W‰W’Y y°RˆWÓ8�F€Eä�u×'Ñ'Ó)×2Ñ2°I×4FÑ4FÔGÜ�u×'Ñ'Ó)×2Ñ2°I×4FÑ4FÕGr   zstriped_line.png)rS   r©   c            	      ó2  — t         j                  j                  d«      } t        j                  «       \  }}|j                  | j                  d¬«      ddddd¬	«       |j                  | j                  d¬«      d
ddddd¬«       |j                  d¬«       y )Ni!N,é   r   ÚorangeÚbluern   rW   ú )r`   ÚgapcolorrY   rZ   r¸   rÎ   Úblack)r   )r    rW   ró   r    r³   )r`   r/  rY   rZ   r¸   Úalpha)Úhandlelength)r   r"   Údefault_rngr$   r>   r[   ÚuniformÚlegend)ÚrngÚ_r0   s      r   Útest_striped_linesr8  O  sˆ   € ä
�)‰)×
Ñ
 Ó
)€CÜ�L‰L‹N�E€A€rØ‡G�GˆC�K‰K˜RˆKÓ ¨¸6Ø˜q¨ð ô -à‡G�GˆC�K‰K˜RˆKÓ ¨¸Ø'¨A°SÀð ô Eà‡I�I˜1€IÕr   c                 ó˜   — | j                  «       j                  ddgg d¢¬«       |j                  «       j                  ddgg d¢¬«       y )Nr   r    rá   )Údashes)r   r    r   r   r    r   )r�   r[   rì   s     r   Útest_odd_dashesr;  Z  sC   € à×ÑÓ×Ñ  A ªyÐÔ9Ø×ÑÓ×Ñ  1˜vÒ.@ÐÕAr   c                  ón  — t        j                  «       \  } }t        | j                  j                  dz  | j                  j
                  dz  dz   ¬«      }|j                  ddgddgd¬«      \  }|j                  |«      \  }}|rJ ‚|j                  ddgddgdd¬	«      \  }|j                  |«      \  }}|sJ ‚t        |d
   dg«       |j                  ddgddgd¬«      \  }|j                  |«      \  }}|rJ ‚|j                  d«       |j                  |«      \  }}|sJ ‚t        |d
   dg«       y )Nr    é   )r   r   r   r   T)Úpickerr9   )r>  Ú
pickradiusÚind)
r$   r>   r   ÚbboxÚwidthÚheightr[   Úcontainsr   Úset_pickradius)r/   r0   Úmouse_eventÚl0ÚfoundÚindicesÚl1Úl2s           r   Útest_pickingrL  `  s5  € Ü�l‰l‹n�G€CˆÜ! C§H¡H§N¡N°aÑ$7Ø$'§H¡H§O¡O°qÑ$8¸2Ñ$=ô?€Kð �'‰'�1�a�&˜1˜a˜&¨ˆ'Ó
.�C€BØ—[‘[ Ó-�N€Eˆ7ÙÐˆ9ð �'‰'�1�a�&˜1˜a˜&¨¸"ˆ'Ó
=�C€BØ—[‘[ Ó-�N€Eˆ7Ù€Lˆ5Ü�w˜u‘~¨ sÔ+ð �'‰'�1�a�&˜1˜a˜&¨ˆ'Ó
.�C€BØ—[‘[ Ó-�N€Eˆ7ÙÐˆ9Ø×Ñ�bÔØ—[‘[ Ó-�N€Eˆ7Ù€Lˆ5Ü�w˜u‘~¨ sÕ+r   c                 ó  — t        j                  ddd«      }| j                  «       j                  ||d«      \  }t	        d«      |d d  |j                  d«       |j                  «       j                  g d¢g d¢dd¬«       y )	Nr   r{   r    z.-r   r~   )r   r    ró   r€   )r   r‘   r�   r[   r\   r›   )r—   r–   r˜   r1   s       r   Útest_input_copyrN  z  sn   € ô 	�	‰	�!�Q˜Ó€AØ	×	Ñ	Ó	×	$Ñ	$ Q¨¨4Ó	0�B€AÜ�‹8€A�a€Dà‡O�O�GÔØ×ÑÓ×Ñšyª)°TÀWÐÕMr   r‹   c                 ó  — dddg d¢ddgt        ddd	«      d
ddddg}t        j                  d   } |t        j                  ddt        |«      «      «      }t        j                  dd«      }d|dz  z  }|j                  «       }t        |«      D ]   \  }}	|j                  ||z
  d|	||   ¬«       Œ" t        ||¬«      t        j                  d<   | j                  «       }
t        |«      D ]  \  }}|
j                  ||z
  d«       Œ y)z*Test that we can set markevery prop_cycle.Né   )r:   rP  )é   é   r:   r   rõ   râ   éÈ   r   rØ   rö   g      ø?)rŽ   rØ   )gÍÌÌÌÌÌÜ?rØ   Újetçš™™™™™É?çš™™™™™é?r   rW   r    zo-)rê   r`   rÖ   )r  rK   Ú	colormapsr   r!   r    r�   rÀ   r[   r   rÙ   rÚ   )r—   r–   ÚcasesÚcmaprÅ   r   r   r‡   rÈ   rê   r0   r7  s               r   Útest_markevery_prop_cyclerZ  …  s  € ð �1�gš|¨a°¨WÜ�3˜˜QÓ  c¨3Ø˜ð&€Eô �=‰=˜Ñ€DÙ”"—+‘+˜c 3¬¨E«
Ó3Ó4€Fä
�‰�B˜Ó€AØ	ˆAˆq‰D‰€Aà
×
Ñ
Ó
€CÜ! %Ó(ò D‰ˆˆ9Ø�‰��Q‘˜¨	¸À¹ˆÕCðDô .4¸eØ:@ô.B„J×ÑÐ)Ñ*ð 
×	Ñ	Ó	€BÜ˜%Ó ò ‰ˆˆ1Ø
�‰��A‘�tÕñr   c                  ó¸  — t        j                  «       \  } }|j                  dd¬«      }|j                  dd«      }|j                  dd«       |j	                  d«       |j                  dd«       |j                  dd«       |j                  «       d	k(  sJ ‚|j                  «       dk(  sJ ‚|j                  «       d
k(  sJ ‚|j                  «       dk(  sJ ‚t        j                  t        d¬«      5  |j                  dd«       d d d «       t        j                  t        d¬«      5  |j	                  d«       d d d «       y # 1 sw Y   Œ?xY w# 1 sw Y   y xY w)N)rØ   rØ   ç333333ã?)Úslope)rV  r÷   rU  rö   g333333@rV  )rU  rö   )rö   rU  )r\  rV  z.Cannot set an 'xy2' value while 'slope' is setrE   z-Cannot set a 'slope' value while 'xy2' is setr   )r$   r>   ÚaxlineÚset_xy1Ú	set_slopeÚset_xy2Úget_xy1Ú	get_slopeÚget_xy2rG   rH   rg   )r/   r0   Úline1r'  s       r   Útest_axline_settersrf  ž  s/  € Ü�l‰l‹n�G€CˆØ�I‰I�h cˆIÓ*€EØ�I‰I�h Ó)€Eð 
‡M�M�"�bÔØ	‡O�O�CÔØ	‡M�M�"�bÔØ	‡M�M�"�bÔð �=‰=‹?˜hÒ&Ð&Ð&Ø�?‰?Ó Ò#Ð#Ð#Ø�=‰=‹?˜hÒ&Ð&Ð&Ø�=‰=‹?˜hÒ&Ð&Ð&ô 
�‰”zØMô
Oñ à�‰�b˜"Ô÷ô 
�‰”zØLô
Nñ à�‰˜Ô÷ð ÷	ð ú÷ð ús   Ã3EÄ)EÅEÅE)?Ú__doc__r¾   Úplatformr*   Útypesr   r   Únumpyr   Únumpy.testingr   rG   rÙ   rK   r   Úmatplotlib.linesÚlinesr   Úmatplotlib.markersr   Úmatplotlib.pathr   Úmatplotlib.pyplotÚpyplotr$   Úmatplotlib.transformsÚ
transformsr’   Úmatplotlib.testing.decoratorsr	   r
   r   ÚmarkÚflakyr6   rC   rQ   r]   rc   ri   ru   ry   rŠ   r™   rœ   r£   Úmachiner«   rÊ   rÒ   rß   rç   rí   Úparametrizer  r  r)  r8  r;  rL  rN  rZ  rf  rs   r   r   ú<module>ry     sL  ðñó Û Û Ý !å Û Ý ,Û ã Û Ý Ý !Ý *Ý  Ý Ý +ß OòGð ‡�×Ñ˜!ÐÓñ(0ó ð(0òVBòñ  �=�/¨t¸Ô?ñ4ó @ð4òò!òò'ñ Ð+Ð,¸$Ô?ñ	)ó @ð	)ñ  Ô)ñ,ó *ð,ò%ò
3ñ ØÐ¨D¸Ø �× Ñ Ó"Ð&EÑE‰È1ôNñBóNðBñ Ð+Ð,¸$Ô?ñó @ðò>-ñ �>Ð"¨)Ô4ñMó 5ðMò%ñ ÓñJó ðJð
 ‡�×Ñ˜ H¨fÐ#5Ó6Ù Ô)ñ)$ó *ó 7ð)$òXòHñ( Ð%Ð&°DÀÔHñó Iðñ ÓñBó ðBò
,ñ4 ÓñNó ðNñ   Ô(ñó )ðó0r   