+
    ,i81                     N   ^ RI Ht ^ RIHt ^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
HtHtHtHt ^ RIHt ^ RIHt ^ RIHtHt ^ RIHtHt ^ RI
t^ RIH t ^ RIHt ^ RI H!t" ]	PF                  PI                  ^R	7      ]	PF                  PK                  R
RR.4      ]	PF                  PK                  RRR.4      ]	PF                  PK                  RRR/ 3RRRR/3RRRR/3RRRR/3RR/ 3RRRR/3RRRR/3.. RHOR7      R 4       4       4       4       t&R t']]R 4       4       t(]! R.4      R 4       t)]]! R.4      R  4       4       t*R! t+]R" 4       t,]R# 4       t-]R$ 4       t.]! R%.4      R& 4       t/]! R'.4      R( 4       t0]! R).4      R* 4       t1]! R.R+7      R, 4       t2]R- 4       t3]! R..R/R07      R1 4       t4]	PF                  PK                  R2R3R4.4      R5 4       t5R6 t6R7 t7R8 t8]! R9.R:R;7      R< 4       t9]! R=.R>R;7      R? 4       t:]! R@.4      RA 4       t;]! RB.RCRD/R/RE7      RF 4       t<RG t=R# )I    )Counter)PathN)cbookpathpatheffectsfont_manager)Figure)Ellipse)needs_ghostscriptneeds_usetex)check_figures_equalimage_comparison)reruns	papersizeletterfigureorientationportrait	landscapezformat, use_log, rcParamspsFps.usedistillerghostscriptxpdftext.usetexTeps	ps.useafm)idsc                    \         P                  P                  V4       \         P                  R ,          R8X  d    \         P                  ! R4       MI\         P                  R ,          R8X  d.    \         P                  ! R4       \         P                  ! R4       \        P                  ! 4       w  rg\        P                  ! 4       ;_uu_ 4       p\        P                  ! 4       ;_uu_ 4       p	V'       d   VP                  R4       VP                  ^^.^^.4       Rp
\         P                  R,          '       g
   V
R	,          p
VP                  V
4       . p\         P                  R,          '       d   VP!                  \"        4       \         P                  R
,          '       d    VP!                  \         P$                  4        VP'                  WVVR7       VP'                  WVVR7       VP*                  '       d   Q hV	P*                  '       d   Q hVP-                  4       P/                  R4      pV	P-                  4       pV R8X  d   \         P                  R ,          R8X  d8   VR8X  d   RVP1                  4       9  g   Q hMRVP1                  4       9   g   Q hMz\         P                  R ,          '       g   \         P                  R,          '       d'   VR8X  d   RMRpVR8X  d
   RV,           MRpW9   g   Q hMVR8X  d   RV9  g   Q hM	RV9   g   Q h\2        P4                  ! RRV4      p\2        P4                  ! RRV4      pWP7                  RR4      8X  g   Q h RRR4       RRR4       R#   \         P                   d+   p\
        P                  ! \        T4      4        Rp?ELRp?ii ; i  \         P                   d+   p\
        P                  ! \        T4      4        Rp?ELVRp?ii ; i  \)        T4       d+   p\
        P                  ! \        T4      4        Rp?EL?Rp?ii ; i  + '       g   i     L; i  + '       g   i     R# ; i)r   r   gsNr   pdftopslogu	   Déjà vur   u    −€r   )formatr   	papertypeasciir   r   s   letterr   s   432.0s   576.0s   -dDEVICEWIDTHPOINTS=s   -sPAPERSIZEs   %%DocumentPaperSizess   (?<=
%%CreationDate: ).*    s   
   
)mplrcParamsupdate_get_executable_infoExecutableNotFoundErrorpytestskipstrpltsubplotsioStringIOBytesIO
set_yscaleplot	set_titleappendRuntimeErrorMatplotlibDeprecationWarningsavefigtupleclosedgetvalueencodelowerresubreplace)r"   use_logr(   r   r   excfigaxs_bufb_buftitleallowable_exceptionss_valb_valwidthwanteds   &&&&&           B/usr/lib/python3/dist-packages/matplotlib/tests/test_backend_ps.pytest_savefig_to_stringiorP      s<   * LL!
||%&-7	"$$T* 
'	(F	2	"$$T*$$Y/ llnGC	%MM% 
AA||M**33E
U!<<&& ''5<<$$ ''(H(HI	"KK+"+  -KK+"+  -
 <<<<<< ''0 T> ||-.&8 ($EKKM999$555/00CLL4O4O$/;$>H=F(=R1E9- &(2%???2e;;;
 3S%@3S%@gu5555o ". ** 	"KKC!!	" ** 	"KKC!!	"2 )* 	"KKC!!	") ".s   M7 1,N9 Q/AP8	>8P8	71P8	)P8		(O;1P8	P8	B'P8	?P8	BP8	%Q7N6N11N69O8O33O8;P5P0*P8	0P55P8	8QQQ	c                  H   \         P                  ! ^RR7      .\        P                  R&   \        P
                  ! 4       w  rVP                  . RO4       \        P                  ! 4       ;_uu_ 4       pV P                  VRR7       RRR4       R#   + '       g   i     R# ; i)   w)	linewidth
foregroundzpath.effectsr   r"   N)         )
r   
withStroker'   r(   r/   r0   r5   r1   r3   r:   )rE   rF   r   s      rO   test_patheffectsr[   t   sd    s;$=CLL llnGCGGI	Bt$ 
s   2BB!	c                    V R ,          pVP                  4        \        P                  ! \        \	        V4      R7      ;_uu_ 4        R\
        P                  R&   \        P                  ! . R	O4       \        P                  ! R4       \        P                  ! VR,          RR7       RRR4       R#   + '       g   i     R# ; i)
zshort-1)tempdirTr   z\textbf{time} (s)ztex_demo.epsr   rV   N)rW   rX   rY   rR   )mkdirr   _setattr_cmtempfiler.   r'   r(   r/   r5   xlabelr:   )tmp_pathbase_tempdirs   & rO   test_tilde_in_tempfilenamerd   }   s~     i'L 
		8S->	?	?&*]#

'(L>1$? 
@	?	?	?s   A!B22C	z	empty.epsc                      \         P                  ! 4       w  rVP                  4        VP                  ^ ^.R^ R7       VP	                  RRRR^ R7       R# )r   rcoloralpha      ?fooN)r/   r0   set_axis_offr5   textrE   rF   s     rO   test_transparencyro      sE    llnGCOOGGQF#QG'GGBEAG.r%   c                      R \         P                  R&   \        P                  ! 4       w  rVP	                  4        VP                  ^ ^.R^ R7       VP                  RRRR^ R7       R# )Tr   rf   rg   rj   rk   N)r'   r(   r/   r0   rl   r5   rm   rn   s     rO   test_transparency_texrq      sU     #'CLLllnGCOOGGQF#QG'GGBEAG.r%   c            	         \         P                  ! 4       w  r\        P                  ! 4       ;_uu_ 4       pV P	                  VR R7       VP                  4       pRRR4       \        P                  ! RX\        P                  4      pV'       g   Q h\        P                  ! RV\        P                  4      pV'       g   Q h\        ^^4       Fi  pRVP                  V4      9  g   Q h\        VP                  V4      4      \        P                  ! \        VP                  V4      4      ^4      8X  d   Ki  Q h	  R#   + '       g   i     L; i)r   rV   Ns$   ^%%BoundingBox: (.+) (.+) (.+) (.+)$s)   ^%%HiResBoundingBox: (.+) (.+) (.+) (.+)$   .)r/   r0   r1   r3   r:   r=   r@   search	MULTILINErangegroupintr,   approxfloat)rE   rF   bufbbhibbis         rO   	test_bboxr      s    llnGC	C&lln 
 
:C	NBI299A3\\#DK41a[288A;&&&288A;6==tzz!}1Eq#IIII  
s   $D<<E	c                 ,   R\         P                  R&   \        P                  ! R4       \        P
                  ! \        4      ;_uu_ 4        \        P                  ! \        P                  ! 4       RR7       RRR4       R#   + '       g   i     R# ; i)z"Test failing latex subprocess callTr   z$22_2_2$r   rV   N)
r'   r(   r/   ra   r,   raisesr8   r:   r1   r3    r%   rO   test_failing_latexr      sP     #'CLLJJz	|	$	$BJJL. 
%	$	$	$s   ,BB	c                 0   V P                  R 4       \        P                  ! RRRRR7       \        P                  ! RRRRR7       \        P                  ! \        P
                  ! 4       RR7       V P                  w  pR	VP                  4       9   g   Q hR
# )WARNING皙?rk   T)usetex皙?barr   rV   zas if usetex=FalseN)	set_levelr/   figtextr:   r1   r3   records
getMessage)caplogrecords   & rO   test_partial_usetexr      sj    
YKKBd+KKBd+KK

T*nnGF6#4#4#6666r%   c                     \         P                  P                  R RRR/4       \        P                  ! RRR4       \        P
                  ! \        P                  ! 4       RR7       R# )	r   Tztext.latex.preamblez$\usepackage{color,graphicx,textcomp}rj   rk   r   rV   N)r'   r(   r)   r/   r   r:   r1   r3   )r   s   &rO   test_usetex_preambler      sJ    LLtF 
 KKBKK

T*r%   z
useafm.epsc                      R \         P                  R&   \        P                  ! 4       w  rVP	                  4        VP                  R4       VP                  RRR4       R# )Tr   rj   qkN)r'   r(   r/   r0   rl   axhlinerm   rn   s     rO   test_useafmr      sB     $CLLllnGCOOJJrNGGBDr%   z	type3.epsc                  6    \         P                  ! R R R4       R# )rj   zI/JN)r/   r   r   r%   rO   test_type3_fontr      s    KKBr%   zcoloredhatcheszerolw.epsc                     \         P                  ! 4       p V P                  \        R^^RRR^ R7      4       V P                  \        RRRRRRRR7      4       V P                  \        RR	R
RRR^ R7      4       V P	                  4        R# )r   /nonerf   )hatch	facecolor	edgecolorrT   rj   +gr   g333333?g?\bN)r   r   )rj   rj   )rW   rW   )r/   gca	add_patchr
   rl   )rF   s    rO   !test_colored_hatch_zero_linewidthr      s}    	BLLASF#&!5 6LLS#SF#&#7 8LLc#&!5 6OOr%   )
extensionsc                     V P                  4       pVP                  ^ ^ RV P                  RR7       VP                  4        R# )r   helloT)	transformclip_onN)add_subplotrm   transFigure)fig_testfig_refrF   s   && rO   test_text_clipr      s8    				BGGAq'X%9%94GHr%   c                     \         P                  ! 4       pVP                  R R R4       V R,          pVP                  V4       \        P
                  P                  P                  VRR7       R# )rj   defztest.epsF)cacheN)r/   r   rm   r:   r'   testingcompareconvert)rb   rE   outs   &  rO   test_d_glyphr      sR     **,CHHRU
Z
CKKKK51r%   ztype42_without_prep.epsmpl20)stylec                      ^*\         P                  R&   R\         P                  R&   \        P                  ! RRR4       R# )*   ps.fonttypestixzmathtext.fontsetrj   zMass $m$N)r'   r(   r/   r   r   r%   rO   test_type42_font_without_prepr      s1     #%CLL'-CLL#$KKS*%r%   fonttype342c                 ~   V \         P                  R &   \        P                  ! 4       w  rVP	                  RRR4       \
        P                  ! 4       pVP                  VRR7       R\        V  RR7      ,           R	,           p\        P                  ! WCP                  4       \        P                  4      '       g   Q hR
# )r   g      ?rj   z&Forty-two is the answer to everything!r   rV   s
   /FontType zutf-8)encodings    defN)r'   r(   r/   r0   rm   r1   r3   r:   bytesr@   rt   r=   ru   )r   rE   rF   r{   tests   &    rO   test_fonttyper   	  s    "*CLLllnGCGGD#?@
**,CKKDK!5H:AAGKD99T<<>2<<8888r%   c                     \         P                  ! 4       w  rVP                  ^ ^.RR7       \        P                  ! 4       pV P                  VRR7       VP                  4       ^ 8  g   Q hR# )z-Test that dashed lines do not break PS outputz--)	linestyler   rV   N)r/   r0   r5   r1   r3   r:   tell)rE   rF   r{   s      rO   test_linedashr     sP    llnGCGGQFdG#
**,CKKDK!88:>>r%   c                      \        4       p V P                  R R R4       \        P                  ! 4       pV P	                  VRR7       V P	                  VRR7       R# )rj   z
foo

r   rV   r   N)r	   rm   r1   r3   r:   )r   r{   s     rO   test_empty_liner   $  sD    XF
KKS+&
**,C
NN3uN%
NN3tN$r%   c                  T   \        4       p V P                  ^^\        RR7      R7      pVP                   F)  pVP	                  . . R7       VP                  ^^.4       K+  	  V P                  R4       \        P                  ! 4       pV P                  VRR7       VP                  ^ 4       VP                  4        Uu. uF4  pVP                  R4      '       g   K  VP                  R	4      ^ ,          NK6  	  pp\        \        V4      P!                  4       4      ^8X  g   Q hR
# u upi )rR   polar)
projection)
subplot_kw)xticksytickszhello, worldr   rV   r    N)r	   r0   dictflatsetr5   suptitler1   r2   r:   seek	readlines
startswith	partitionmaxr   values)rE   axsrF   r{   lnwdss         rO   test_no_duplicate_definitionr   -  s    
(C
,,q!(@,
AChh
b$
A  LL 
++-CKKEK"HHQK " 2mmC   2<<Q   " ws|""$%***	"s   >D%D%zmulti_font_type3.epsgRQ?)tolc                  t   \         P                  ! R .R7      p \        \         P                  ! V 4      4      P                  R8w  d   \
        P                  ! R4       \        P                  ! RRR .^R7       \        P                  ! R^R7       \        P                  ! 4       pVP                  R	R
R4       R# zWenQuanYi Zen Hei)familyzwqy-zenhei.ttczFont may be missingfontzDejaVu Sans)r   sizer   )r   g333333?gffffff?u"   There are 几个汉字 in between!NfmFontPropertiesr   findfontnamer,   r-   r/   rcr   rm   fprE   s     rO   test_multi_font_type3r   A  s    			#6"7	8BBKKO!!%55)*FF6=*=>RHFF4!
**,CHHT5>?r%   zmulti_font_type42.epsg?c                  t   \         P                  ! R .R7      p \        \         P                  ! V 4      4      P                  R8w  d   \
        P                  ! R4       \        P                  ! RRR .^R7       \        P                  ! R^*R7       \        P                  ! 4       pVP                  R	R
R4       R# r   r   r   s     rO   test_multi_font_type42r   N  s    			#6"7	8BBKKO!!%55)*FF6=*=>RHFF4"
**,CHHT5>?r%   zscatter.epsc                  t   \         P                  P                  R 4      p V P                  ^ ^^
4      pV P                  ^ ^^
4      pV P                  ^^d^
4      p\        P
                  ! 4       w  rEVP                  WV. RORR7       VP                  4        \        ^^4       Uu. uF"  p\        P                  P                  V4      NK$  	  ppV P                  ^ ^^4      P                  ^
^4      pRR.p\        P                  ! WsR	RVR7      p	VP                  V	4       VP!                  ^ ^4       R# u upi )
i!N,<)r   markerg{Gz?g{Gz?yellow)zorder
facecolorsoffsetsN)g?r   r   )nprandomdefault_rnguniformr/   r0   scatterrl   rv   r   r   unit_regular_polygonreshapemcollectionsPathCollectionadd_collectionset_xlim)
rngxvalsyvalssizesrE   rF   r~   pathsr   pcs
             rO   test_path_collectionr  [  s   
))


)CKK1b!EKK1b!EKKC$EllnGCJJuUocJJOO8=aD1TYY++A.EDkk!S"%--b!4G4LE		$	$U"08'
KBbKK1 Es   %(D5zcolorbar_shift.epsbbox_inchestight)savefig_kwargr   c                     \         P                  ! . RO4      p\         P                  ! . ROVP                  4      p\        P
                  ! ^ ^.^^.^ ^.WR7       \        P                  ! 4        R# )rf   )ccmapnormN)rf   r   r   )r   g      rj   rW   )mcolorsListedColormapBoundaryNormNr/   r   colorbar)rb   r  r  s   &  rO   test_colorbar_shiftr  m  sR     !!/2D 2DFF;DKKAA1a&t?LLNr%   c                     \         P                  ! 4       p \        P                  ! \        R R7      ;_uu_ 4        V P                  \        P                  ! 4       RRR7       RRR4       \        P                  ! \        R R7      ;_uu_ 4        R\        P                  R&   RRR4       R#   + '       g   i     LR; i  + '       g   i     R# ; i)z'auto' is not a valid value)matchr   auto)r"   r#   Nzps.papersize)
r/   r   r,   r   
ValueErrorr:   r1   r3   r'   r(   )rE   s    rO   test_auto_papersize_removalr  v  s    
**,C	z)F	G	GBJJL&A 
H 
z)F	G	G'-^$ 
H	G 
H	G 
H	G	Gs   (B,B?,B<	?C	)r   zps with distiller=ghostscriptzps with distiller=xpdfzps with usetexr   zeps afmzeps with usetex)>collectionsr   pathlibr   r1   r@   r`   numpyr   r,   
matplotlibr   r   r   r   r   matplotlib.figurer	   matplotlib.patchesr
   matplotlib.testing._markersr   r   matplotlib.testing.decoratorsr   r   r'   matplotlib.collectionsr  matplotlib.colorscolorsr  matplotlib.pyplotpyplotr/   markflakyparametrizerP   r[   rd   ro   rq   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r   r%   rO   <module>r/     s/     	 	    C C $ & G O  - #  !x&:;[(AB4	5"	5$m45	5$f-.	5=$'(
E2
D;%&
EM4()7  "G6# C < (G6T% @  @" ;- / !/ ;- / ! /J$ / / 7 7 + + <.! " ;-  ! -./ 0 ( ) 2 2 ,-W=& >& c4[19 29	%+( )*5	@ 6	@ *+5	@ 6	@ =/" #" '(8P!!.r%   