+
    iY                        ^ RI t ^ RIHt ^ RIt^ RIHt ^ RIHtHtH	t	 ^ RI
Ht ^ RIHtHt ^ RIHtHtHtHt ^ RIHtHt ^ R	IHt ^ R
IHtHt ^ RIHt ^ RIHt ^ RIH t  ^ RI!H"t" ^ RI#H$t$ ^ RI%H&t& ^ RI'H(t( ^ RI)H*t*H+t+H,t,H-t-H.t.H/t/ ^ RI)H0t0H1t1H2t2H3t3H4t4 ^ RI5H6t6H7t7H8t8H9t9H:t: ^ RI;H<t<H=t=H>t>H?t?H@t@ ^ RIAHBtC ^ RIDHEtE ]0! 4        ](! RR]F3R7      tG ! R R]*4      tH ! R R]*4      tIR tJ]P                  P                  R R!R".4      R# 4       tM]P                  P                  R R!R".4      R$ 4       tN]P                  P                  R R!R".4      R% 4       tO]P                  P                  R R!.4      R& 4       tP]P                  P                  R R!R".4      R' 4       tQ]P                  P                  R R!R".4      R( 4       tR]P                  P                  R R!R".4      R) 4       tS]P                  P                  R R!R".4      R* 4       tT]P                  P                  R R!R".4      R+ 4       tUR, tV]P                  P                  R R!R".4      R- 4       tW]P                  P                  R R!R".4      R. 4       tX]P                  P                  R R!R".4      R/ 4       tY]P                  P                  R R!R".4      R0 4       tZ]=! R14      R2 4       t[]P                  P                  R R!R".4      R3 4       t\]P                  P                  R R!R".4      R4 4       t]]P                  P                  R R!R".4      R5 4       t^]P                  P                  R R!R".4      R6 4       t_]P                  P                  R R!R".4      R7 4       t`R8 taR9 tb]P                  P                  R R!R".4      R: 4       tc]P                  P                  R R!R".4      R; 4       tdR< teR= tfR> tgR? thR@ tiRA tjRB tkR# )C    N)TemporaryDirectory)Sum)Ioopi)Ne)Symbolsymbols)LambertWexp	exp_polarlog)	real_rootsqrt)	Piecewise)cossin)Min)meijerg)Integral)And)S)sympify)import_module)Plotplotplot_parametricplot3d_parametric_lineplot3dplot3d_parametric_surface)
unset_showplot_contourPlotGridMatplotlibBackendTextBackend)LineOver1DRangeSeriesParametric2DLineSeriesParametric3DLineSeriesParametricSurfaceSeriesSurfaceOver2DRangeSeries)skipskip_under_pyodidewarnsraiseswarns_deprecated_sympy)lambdify)ignore_warnings
matplotlibz1.1.0)min_module_versioncatchc                   *   a  ] tR t^&t o RtR tRtV tR# )DummyBackendNotOkzUsed to verify if users can create their own backends.
This backend is meant to raise NotImplementedError for methods `show`,
`save`, `close`.
c                ,    \         P                  V 4      # Nobject__new__clsargskwargss   &*,\/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/plotting/tests/test_plot.pyr;   DummyBackendNotOk.__new__+       ~~c""     N)__name__
__module____qualname____firstlineno____doc__r;   __static_attributes____classdictcell____classdict__s   @r@   r6   r6   &   s     # #rC   r6   c                   <   a  ] tR t^/t o RtR tR tR tR tRt	V t
R# )DummyBackendOkz`Used to verify if users can create their own backends.
This backend is meant to pass all tests.
c                ,    \         P                  V 4      # r8   r9   r<   s   &*,r@   r;   DummyBackendOk.__new__3   rB   rC   c                    R # r8   rD   selfs   &r@   showDummyBackendOk.show6       rC   c                    R # r8   rD   rS   s   &r@   saveDummyBackendOk.save9   rW   rC   c                    R # r8   rD   rS   s   &r@   closeDummyBackendOk.close<   rW   rC   rD   N)rE   rF   rG   rH   rI   r;   rU   rY   r\   rJ   rK   rL   s   @r@   rO   rO   /   s#     # rC   rO   c                  z    \        R 4      p \        W ^ ^3RR7       \        V ^,          ^,           V ^ ^3RR7       R# )xtext)backendN)r	   r   )r_   s    r@   test_basic_plotting_backendrb   ?   s5    sA1Iv&AAq!9f-rC   adaptiveTFc                 .  aa \         '       g   \        R 4       \        R4      o\        R4      o\        RR7      ;_uu_ 4       p\	        SRRV ^
R7      p\	        S\        S4      ,          S\        S4      ,          RV ^
R	7      pVP                  V4       R
 V^ ,          n        RV^,          n        RVn	        RVn
        RV^,          n        RVn        RVn        RVn        RpVP                  \         P"                  P%                  W4      4       VP&                  P)                  4        VP                  \	        S^,           V ^
R7      4       VP+                  \	        S^,           S^,          V ^
R7      ^,          4       RpVP                  \         P"                  P%                  W4      4       \	        S^,          SR^3V ^
R7      V^&   RpVP                  \         P"                  P%                  W4      4       VP&                  P)                  4        \	        \        S4      SR\,        ,          ^\,        ,          3V ^
R7      pRpVP                  \         P"                  P%                  W4      4       VP&                  P)                  4        \	        \        S4      V ^
R7      pRpVP                  \         P"                  P%                  W4      4       VP&                  P)                  4        \	        S^,          SR^33S^,          SR ^33V ^
R7      pRpVP                  \         P"                  P%                  W4      4       VP&                  P)                  4        \/        \0        VV3R l4       \	        \3        ^S^ 8  3R!4      SR"^3V ^
R7      pRpVP                  \         P"                  P%                  W4      4       VP&                  P)                  4        \	        \3        SS^8  3S^,          R34      SR ^3V ^
R7      pRpVP                  \         P"                  P%                  W4      4       VP&                  P)                  4        \	        SV ^
R7      p\	        ^V ^
R7      pVP                  V4       RpVP                  \         P"                  P%                  W4      4       VP&                  P)                  4        \3        R"SR"8  3S\5        R"S8*  S^ 8  4      3S^,          \5        ^ S8*  S^8  4      3S^,          S^8  34      p\	        VSR ^3V ^
R7      pRpVP                  \         P"                  P%                  W4      4       VP&                  P)                  4        RRR4       R#   + '       g   i     R# ; i)#"Matplotlib not the default backendr_   ysympy_prefixTf1legendlabelrc   nf2)rm   rc   rn   c                     V # r8   rD   as   &r@   <lambda>&test_plot_and_save_1.<locals>.<lambda>S       ArC   bz	Big titlez
the x axiszstraight linez!test_basic_options_and_colors.pngrc   rn   ztest_plot_extend_append.pngztest_plot_setitem.pngztest_line_explicit.pngztest_line_default_range.pngztest_line_multiple_range.pngc                     < \        S S4      # r8   )r   r_   rf   s   r@   rs   rt   x   s    41:rC   ztest_plot_piecewise.pngztest_plot_piecewise_2.pngztest_horizontal_line.pngztest_plot_piecewise_3.pngN   r{   )i   r   T)r2   r+   r	   r   r   r   r   extend
line_colortitlexlabelrm   rl   aspect_ratioxlimrY   ospathjoin_backendr\   appendr   r.   
ValueErrorr   r   )	rc   tmpdirpfilenamep1p2fr_   rf   s	   &      @@r@   test_plot_and_save_1r   D   s4   :12sAsA	8	,	, 4th"E3q61SV84(bI	%!!$!
6	rww||F-.	

	a!eh"56	a!eQTH;A>?0	rww||F-.AqD1b!*x2>!*	rww||F-.	

Q!RUAbD)HC+	rww||F-.	

Q(b10	rww||F-.	

!Q$B
#adQAJ%7(bQ1	rww||F-.	

z-. Aq1u:y1Ar1:TVW,	rww||F-.	

Aq1u:1d|4q"aj8WYZ.	rww||F-.	

 !h"-!h"-
		"-	rww||F-.	

 r1r6lQB!GQU(;$<T3qAvq1u%&AqAv8QAJR8.	rww||F-.	

O 
-	,	,	,s   T5VV	c                    \         '       g   \        R 4       \        R4      p\        R4      p\        R4      p\        RR7      ;_uu_ 4       p\	        \        V4      \        V4      V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \	        \        V4      \        V4      VR^3RR	V ^
R
7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \	        \        V4      \        V4      3V\        V4      3V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \	        \        V4      \        V4      VR^33V\        V4      VR^33V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \	        V\        V4      ^V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \	        \        V4      \        V4      RRR7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \        \        V4      \        V4      VRRV ^
R
7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \        \        V4      \        V4      WR^33\        V4      \        V4      WR^33V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \        \        V4      \        V4      V^V R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \        W,          V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \        V) V,          W,          VR^3V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \        W,          VR^3VR^33V) V,          VR^3VR^33V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \        \        W,           4      \        W,
          4      W,
          V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \        V\        V4      ,          V\        V4      ,          W1R^3VR^33\        W,           4      \        W,
          4      W,
          VR^3VR^33V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \!        \        V4      \        V4      ,          VR^3VR^3V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \!        V^,          V^,          ,           V^,          V^,          ,           VR^3VR^3V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        \!        V^,          V^,          ,           VR^3VR^33V^,          V^,          ,           VR^3VR^33V ^
R7      pRpVP                  \        P                  P                  WF4      4       VP                  P                  4        RRR4       R#   + '       g   i     R# ; i) re   r_   rf   zrg   rh   rw   ztest_parametric.pngTparametric_plotrk   ztest_parametric_range.pngztest_parametric_multiple.pngz#test_parametric_multiple_ranges.png)depthrc   rn   ztest_recursion_depth.pngFi  ztest_adaptive.png3d_parametric_plotztest_3d_line.pngztest_3d_line_multiple.png)rn   rc   ztest_3d_line_points.pngztest_surface.pngztest_surface_multiple.pngz test_surface_multiple_ranges.pngztest_parametric_surface.pngztest_contour_plot.pngNr~   r   )r2   r+   r	   r   r   r   r   rY   r   r   r   r   r\   r   r   r    r"   rc   r_   rf   r   r   r   r   s   &      r@   test_plot_and_save_2r      s   :12sAsAsA	8	,	, CFCFXD(	rww||F-.	

 FCFQAJt;L% /	rww||F-.	

 SVSV,q#a&k%1	rww||F-.	

 VSVaQZ(1c!fq"aj*A% 9	rww||F-.	

 As1vR%-	rww||F-.	

 CFCFUcB&	rww||F-.	

 #FCFAd2F% &	rww||F-.	

"VSVQB
+c!fc!faR-L% /	rww||F-.	

"3q63q61,	rww||F-.	

 158r2%	rww||F-.	

 A26151b!*x2F.	rww||F-.	

 UQAJB
+qb1fq"aj1b!*-M% 6	rww||F-.	

 &c!%j#ae*ae%0	rww||F-.	

 &s1vXqQxAJB
;ZQUQUQAJB
C% 1	rww||F-.	

 QAB
QAJ%*	rww||F-.	

 A1adQTkAr1:2qz%*	rww||F-.	

 TAqD[1b!*q"aj1TAqD[1b!*q"aj1% +	rww||F-.	

u 
-	,	,	,s   `a((a9	c                    \         '       g   \        R 4       \        R4      p\        R4      p\        R4      p\        RR7      ;_uu_ 4       p\	        \        V4      V ^
R7      pR V^ ,          n        RpVP                  \        P                  P                  WF4      4       R	 V^ ,          n        R
pVP                  \        P                  P                  WF4      4       VP                  P                  4        \	        V\        V4      ,          V\        V4      ,          V^ ^
3V ^
R7      pR V^ ,          n        RpVP                  \        P                  P                  WF4      4       R V^ ,          n        RpVP                  \        P                  P                  WF4      4       R V^ ,          n        RpVP                  \        P                  P                  WF4      4       VP                  P                  4        \        \        V4      R\        V4      ,          \        ^V,          4      ,          ,           \        V4      R\        V4      ,          \        ^V,          4      ,          ,           R\        ^V,          4      ,          V^ ^\        ,          3V ^
R7      p\!        V\        ^V,          4      4      V^ ,          n        RpVP                  \        P                  P                  WF4      4       R V^ ,          n        RpVP                  \        P                  P                  WF4      4       R V^ ,          n        RpVP                  \        P                  P                  WF4      4       VP                  P                  4        \#        \        V4      V,          V^ ^\        ,          3VR#^3V ^
R7      pR V^ ,          n        RpVP                  \        P                  P                  WF4      4       R V^ ,          n        RpVP                  \        P                  P                  WF4      4       R V^ ,          n        RpVP                  \        P                  P                  WF4      4       \!        WV3\'        V^\        ,          ,
          ^,          V^,          ,           4      4      V^ ,          n        RpVP                  \        P                  P                  WF4      4       VP                  P                  4        \)        V\        ^V,          4      ,          V\        ^V,          4      ,          VVR$^3VR$^3V ^
R7      pR V^ ,          n        RpVP                  \        P                  P                  WF4      4       R V^ ,          n        R pVP                  \        P                  P                  WF4      4       \!        WV3\'        V^,          V^,          ,           V^,          ,           4      4      V^ ,          n        R!pVP                  \        P                  P                  WF4      4       VP                  P                  4        R"R"R"4       R"#   + '       g   i     R"# ; i)%re   r_   rf   r   rg   rh   rw   c                     V # r8   rD   rq   s   &r@   rs   &test_plot_and_save_3.<locals>.<lambda>+  ru   rC   ztest_colors_line_arity1.pngc                     V# r8   rD   rr   rv   s   &&r@   rs   r   /      qrC   ztest_colors_line_arity2.pngc                     V # r8   rD   rq   s   &r@   rs   r   5  ru   rC   z!test_colors_param_line_arity1.pngc                     V # r8   rD   r   s   &&r@   rs   r   9  r   rC   c                     V# r8   rD   r   s   &&r@   rs   r   =  r   rC   z"test_colors_param_line_arity2b.pngg?ztest_colors_3d_line_arity1.pngc                     V# r8   rD   r   s   &&r@   rs   r   J  r   rC   ztest_colors_3d_line_arity2.pngc                     V# r8   rD   rr   rv   cs   &&&r@   rs   r   M      !rC   ztest_colors_3d_line_arity3.pngc                     V # r8   rD   rq   s   &r@   rs   r   S  r   rC   ztest_colors_surface_arity1.pngc                     V# r8   rD   r   s   &&r@   rs   r   V  r   rC   ztest_colors_surface_arity2.pngc                     V# r8   rD   r   s   &&&r@   rs   r   Y  s    QrC   ztest_colors_surface_arity3a.pngztest_colors_surface_arity3b.pngc                     V # r8   rD   rq   s   &r@   rs   r   c  r   rC   z!test_colors_param_surf_arity1.pngc                     W,          # r8   rD   r   s   &&r@   rs   r   f  s    !#rC   z!test_colors_param_surf_arity2.pngz!test_colors_param_surf_arity3.pngNr~   r   )r2   r+   r	   r   r   r   r   rY   r   r   r   r   r\   r   r   r   	lambdify_r   surface_colorr   r    r   s   &      r@   test_plot_and_save_3r     sq   :12sAsAsA	8	,	,
 Q(b1%!0	rww||F-.(!0	rww||F-.	

3q61SV8aBZ(bI%!6	rww||F-.(!6	rww||F-.(!7	rww||F-.	

"FSQZAaC((FSQZAaC((AaCL1R4L8r	3
 $As1Q3x0!3	rww||F-.(!3	rww||F-.+!3	rww||F-.	

3q6!8aAbD\Ar1:BO(!3	rww||F-.+!3	rww||F-..!4	rww||F-.&ay$AbD1}q!t7K2LM!4	rww||F-.	

%a#a!e*na#a!e*naB
QAJRA(!6	rww||F-.-!6	rww||F-.&ay$q!tad{QT7I2JK!6	rww||F-.	

O 
-	,	,	,s   X$Y;;Z	c                    \         '       g   \        R 4       \        R4      p\        R4      p\        RR7      ;_uu_ 4       p\	        \        \        V4      ^,          ^,           \        V^,          ^,           4      ,          4      V^ V34      p\        WB^^3V ^
RR7      pRpVP                  \        P                  P                  W64      4       VP                  P                  4        RRR4       R#   + '       g   i     R# ; i)	re   r_   rf   rg   rh   T)rc   rn   force_real_evalztest_advanced_integral.pngN)r2   r+   r	   r   r   r   r   r   r   rY   r   r   r   r   r\   )rc   r_   rf   r   ir   r   s   &      r@   test_plot_and_save_4r   o  s    :12sAsA 
8	,	,S#a&!)a-adQh781a)D1IBM/	rww||F-.	

 
-	,	,	,s   B*C66D	c           
      8   \         '       g   \        R 4       \        R4      p\        R4      p\        RR7      ;_uu_ 4       p\	        ^W,          ,          V^\
        34      p\        WB^^
3V ^
R7      pRpVP                  \        P                  P                  W64      4       VP                  P                  4        \        \	        ^V,          V^V34      V^^
3RV ^
R7      pR	V^ ,          n        R	V^ ,          n        R
p\        \         4      ;_uu_ 4        VP                  \        P                  P                  W64      4       RRR4       VP                  P                  4        RRR4       R#   + '       g   i     L4; i  + '       g   i     R# ; i)re   r_   rf   rg   rh   rw   ztest_advanced_inf_sum.pngFrU   rc   rn   Tztest_advanced_fin_sum.pngN)r2   r+   r	   r   r   r   r   rY   r   r   r   r   r\   only_integersstepsr1   UserWarning)rc   r_   rf   r   sr   r   s   &      r@   test_plot_and_save_5r     s+   :12sAsA	8	,	,!$Ar
#2JR8.	rww||F-.	

QqS1a)$q!Rju%!!!
. [))FF277<<12 * 	


/ 
-	,( *)) 
-	,	,s%   CF/E5		"F5F FF	c                    \         '       g   \        R 4       \        R4      p\        RR7      ;_uu_ 4       pRp\	        \        V4      \        \        V4      ,          ,           4      pVP                  \        P                  P                  W#4      4       \        \        4      ;_uu_ 4        \	        \        \        V) 4      4      4      pVP                  \        P                  P                  W#4      4       RRR4       \	        \        V4      4      pVP                  \        P                  P                  W#4      4       \	        \        \        V4      4      4      pVP                  \        P                  P                  W#4      4       ^V^,          ,          \!        \        ) \"        ,          4      ,          ^,          p\%        RRV4      p^V^,          ,          \!        \        \"        ,          4      ,          ^,          p\%        RRV4      pWh,           ^0\"        ,          ,          p	\'        \(        RRR7      ;_uu_ 4        \	        WR	R
3V ^
R7      pVP                  \        P                  P                  W#4      4       RRR4       RRR4       R#   + '       g   i     EL; i  + '       g   i     L.; i  + '       g   i     R# ; i)re   r_   rg   rh   ztest.pngNz&The evaluation with NumPy/SciPy failedFmatchtest_stacklevelgư>{Gz?rw   ))      ?rD   ))   r   r   rD   )r2   r+   r	   r   r   r   r   r   rY   r   r   r   r1   RuntimeWarningr   r   r   r   r   r-   r   )
rc   r_   r   r   r   x1m1x2m2exprs
   &         r@   test_plot_and_save_6r     s   :12sA	8	,	,
 Q!CF("#	rww||F-.^,,T$r(^$AFF277<<12 - !	rww||F-.hqk"#	rww||F-. AX	1"R%((*^%8"=q!tVi"o%a'\#4b9BG$:!
 

 TtT?XDAFF277<<12
1 
-	, -,,
 
1 
-	,	,s?   A7K.AJ	;EKA J1	KJ.(	K1K<KK	c                    \         '       g   \        R 4       \        R4      p\        R4      p\        RR7      ;_uu_ 4       p\	        W^
R7      p\        \        V4      \        V4      3V\        V4      3RV ^
R7      p\        \        V4      \        V4      V ^
RR7      p\        \        V4      \        V4      VRV ^
R7      p\        ^^WEWg4      pR	p	VP                  \        P                  P                  W94      4       VP                  P                  4        \        ^^WEWg4      pR
p	VP                  \        P                  P                  W94      4       VP                  P                  4        \	        \        V4      V\         ) \         3RV ^
R7      p
R V
^ ,          n        \	        \%        ^V^ 8  3R4      VR^3RV ^
R7      p\'        V^,          V^,          ,           VR^3VR^33V^,          V^,          ,           VR^3VR^33RV ^
R7      p\        ^^WV4      pRp	VP                  \        P                  P                  W94      4       VP                  P                  4        RRR4       R#   + '       g   i     R# ; i)re   r_   rf   rg   rh   rw   Fr   rc   rn   rU   ztest_grid1.pngztest_grid2.pngc                     V # r8   rD   rq   s   &r@   rs   (test_plotgrid_and_save.<locals>.<lambda>      QrC   ztest_grid3.pngNr   r   r~   r   )r2   r+   r	   r   r   r   r   r   r   r#   rY   r   r   r   r   r\   r   r   r   r"   )rc   r_   rf   r   r   r   p3p4r   r   p5p6p7s   &            r@   test_plotgrid_and_saver     s   :12sAsA	8	,	,!"-c!fc!f-3q6{%FCFX%A#CFCFAE% Q22*#	rww||F-.	

 Q22*#	rww||F-.	

#a&!bS"EHK&1)QAJ	2QAJU%TAqD[1b!*q"aj1TAqD[1b!*q"aj1%
 Q22&#	rww||F-.	

A 
-	,	,	,s   H,I88J		c                 F   \         '       g   \        R 4       \        R4      p\        W^
R7      p\        V^,          V ^
R7      p\        V^,           V ^
R7       VP	                  V^ ,          4       \        VP                  4      ^8X  g   Q h\        \        4      ;_uu_ 4        VP	                  V4       RRR4       \        \        4      ;_uu_ 4        VP	                  VP                  4       RRR4       R#   + '       g   i     LM; i  + '       g   i     R# ; i)re   r_   rw   N)	r2   r+   r	   r   r   len_seriesr.   	TypeError)rc   r_   r   r   s   &   r@   test_append_issue_7140r     s    :12sA	ab	)B	adX	,BQR( IIberzz?a				
		" 
 
			
		"** 
	 
	 
		s   %C<D<D	D 	c           
      (  a a \         '       g   \        R 4       \        R4      p\        V4      o\	        S\
        P                  ) \
        P                  3RS ^
R7      pVP                  P                  4        \	        SR\
        P                  ) \
        P                  3S ^
R7      pVP                  P                  4        \	        SRS ^
\        R4      \        R4      3R7      pVP                  P                  4        \	        SS ^
\        R4      \        R4      3RR7      pVP                  P                  4        \        \        V V3R l4       \        \        V V3R l4       \        \        V V3R	 l4       \        \        V V3R
 l4       R# )re   r_   )r   ylimrc   rn   z-3.14z3.14)r   rc   rn   r   rc   rn   r   r   c                  F   < \        SS ^
\        P                  ) ^3RR7      # 
   r   r   r{   r   r   ImaginaryUnitrc   eqns   r@   rs   "test_issue_15265.<locals>.<lambda>$  s!    S8r??"A&W6rC   c                  D   < \        SS ^
RR\        P                  3R7      # r   r   r   r   r   r   s   r@   rs   r   (  s    S8rAOO46rC   c                  D   < \        SS ^
\        P                  ^3RR7      # r   )r   r   NegativeInfinityr   s   r@   rs   r   ,  s     S8r$$a(w8rC   c                  D   < \        SS ^
RR\        P                  3R7      # r   )r   r   Infinityr   s   r@   rs   r   0  s    S8rAJJ/1rC   Nr   )r2   r+   r	   r   r   r   Pir   r\   r   r.   r   )rc   r_   r   r   s   f  @r@   test_issue_15265r     s,   :12sA
a&CSqtt}7XLAJJSwqtteQTT]XLAJJSwRg0	2AJJS8rg0w	@AJJ
:	67 :	67 :	89 :	12rC   c                     a  \         '       g   \        R 4       \        4        \        4       o \	        \
        V 3R l4       R# )re   c                  $   < S P                  4       # r8   rU   r   s   r@   rs   !test_empty_Plot.<locals>.<lambda>=  s    rC   N)r2   r+   r   r   r.   NotImplementedErrorr   s   @r@   test_empty_Plotr   4  s-    :12 	F 	A
 01rC   c                    \         '       g   \        R 4       \        R4      pVR,          ^
V^,          ,          ,
          V^,          ,           p\        W!R^
3V ^RR7      p\	        \
        4      ;_uu_ 4        \        V^ ,          P                  4       ^ ,          4      ^8  g   Q h RRR4       R#   + '       g   i     R# ; i)re   r_   g333333?Fr   N)r2   r+   r	   r   r1   r   r   get_datarc   r_   r   r   s   &   r@   test_issue_17405r   @  s    :12sA	3AqD1a4AQCx2EBA
 
	(	(1Q4==?1%&",,, 
)	(	(	(s   8/B22C	c           	      4   \         '       g   \        R 4       \        R4      p\        WR^d3V ^RRR7      p\	        V^ ,          P                  4       ^ ,          4      ^8  g   Q hV^ ,          P                  R8X  g   Q hV^ ,          P                  R8X  g   Q hR# )re   r_   gMbP?r   F)rc   rn   xscalerU   g      Y@N)r2   r+   r	   r   r   r   endstartrc   r_   r   s   &  r@   test_logplot_PR_16796r   P  s    :12sAQD#R5	"A qt}}q!"b(((Q488uQ4::rC   c                     \         '       g   \        R 4       \        R4      p\        \	        V4      RV ^R7      p\        V^ ,          P                  4       ^ ,          4      ^8  g   Q hR# )re   r_   Fr   N)r2   r+   r	   r   r   r   r   r   s   &  r@   test_issue_16572r  _  sQ    :12sAXa[ux2>A qt}}q!"b(((rC   c                    \         '       g   \        R 4       \        RRR7      p\        \        ) \        \        \        ,          V,          4      ,          V,          \        \        \        ) \        ,          V,          4      ,          V,          ,           \        V^ 4      3^\        ,          R34      p\        VRV ^R7      p\        V^ ,          P                  4       ^ ,          4      ^8  g   Q hR# )re   kT)integerFr   N)r2   r+   r	   r   r   r   r   r   r   r   r   )rc   r  r   r   s   &   r@   test_issue_11865r  k  s    :12sD!AA2c!B$q&k>!#aQBrE!GnQ&661aAAbD$<PAQUX4A qt}}q!"b(((rC   zLWarnings not emitted in Pyodide because of lack of WASM fp exception supportc            	      r   \         '       g   \        R 4       \        R4      p \        \	        \        W ^,
          ,          4      ^4      RRR7      p\        \        RRR7      ;_uu_ 4        \        V^ ,          P                  4       ^ ,          4      ^8  g   Q h RRR4       R#   + '       g   i     R# ; i)re   r_   FT)rU   rc   zinvalid value encountered inr   N)
r2   r+   r	   r   r   r   r-   r   r   r   r_   r   s     r@   test_issue_11461r	  y  s    :12sAYAsGq)EA	,
 
 1Q4==?1%&",,,
 
 
 
s   +/B%%B6	c           
      0   \         '       g   \        R 4       \        R4      p\        \	        V4      \        V4      V^ ^\        ,          3RRV ^R7      pVP                  R8X  g   Q h\        V^ ,          P                  4       ^ ,          4      ^8  g   Q hR# )re   r_   F)r   rU   rc   rn   Nrz   )
r2   r+   r	   r   r   r   r   r   r   r   r   s   &  r@   test_issue_11764r    s{    :12sAAAAq2vR	AA>>V### qt}}q!"b(((rC   c                 8   \         '       g   \        R 4       \        R4      p\        \	        V4      RRV ^R7      pVP
                  \        8X  g   Q h\        V^ ,          P                  4       ^ ,          4      ^8  g   Q h\        \	        V4      RRV ^R7      pVP
                  \        8X  g   Q h\        V^ ,          P                  4       ^ ,          4      ^8  g   Q h\        \	        V4      RRV ^R7      pVP
                  \        8X  g   Q h\        V^ ,          P                  4       ^ ,          4      ^8  g   Q h\        \	        V4      RV ^R7      pVP
                  \        8X  g   Q h\        V^ ,          P                  4       ^ ,          4      ^8  g   Q hR# )	re   r_   r2   F)ra   rU   rc   rn   r`   defaultr   N)
r2   r+   r	   r   r   ra   r$   r   r   r%   )rc   r_   pmptpdr   s   &     r@   test_issue_13516r    sE   :12sA	c!flR	PB::****r!u~~"#r)))	c!ff58r	JB::$$$r!u~~"#r)))	c!fieh"	MB::****r!u~~"#r)))SV%(b9A99))))qt}}q!"b(((rC   c                    \         '       g   \        R 4       \        R4      p\        W^,          VR^
3V ^
R7      pVP                  pVP
                  P                  4       w  rE\        V^
,           4      ^8  g   Q h\        V^
,
          4      ^8  g   Q hVP
                  P                  4       w  rg\        V^
,           4      ^
8  g   Q h\        V^d,
          4      ^
8  g   Q hR# )re   r_   rw   Nr   )	r2   r+   r	   r   r   axget_xlimabsget_ylim)rc   r_   r   ra   xminxmaxyminymaxs   &       r@   test_plot_limitsr    s    :12sAQ1q#rlX<AjjG$$&JDtby>Atby>A$$&JDtby>Btcz?RrC   c                    \         '       g   \        R 4       \        R4      p^\        V4      ,          ^\	        V4      ,          ^V,          VR^33p\	        V4      \        V4      WR^33p\        W#V ^<R7      pVP                  pVP                  P                  4       w  rg\        V^,           4      R8  g   Q h\        V^,
          4      R8  g   Q hVP                  P                  4       w  r\        V^,           4      R8  g   Q h\        V	^,
          4      R8  g   Q hVP                  P                  4       w  r\        V
^
,           4      R8  g   Q h\        V^
,
          4      R8  g   Q h\        W2V ^<R7      pVP                  pVP                  P                  4       w  rg\        V^,           4      R8  g   Q h\        V^,
          4      R8  g   Q hVP                  P                  4       w  r\        V^,           4      R8  g   Q h\        V	^,
          4      R8  g   Q hVP                  P                  4       w  r\        V
^
,           4      R8  g   Q h\        V^
,
          4      R8  g   Q hR# )re   r_   rw   r   Nr~   )r2   r+   r	   r   r   r   r   r  r  r  r  get_zlim)rc   r_   v1v2r   ra   r  r  r  r  zminzmaxs   &           r@   "test_plot3d_parametric_line_limitsr"    s	   :12sA
CF(Ac!fHacAr1:	.B
a&#a&!QZ	(BrB?AjjG$$&JDtax=4tax=4$$&JDtax=4tax=4$$&JDtby>D   tby>D   rB?AjjG$$&JDtax=4tax=4$$&JDtax=4tax=4$$&JDtby>D   tby>D   rC   c           
         \         '       g   \        R 4       \        R4      p\        \	        V4      RRV ^
R7      pVP
                  P                  P                  4       pV^ ,          ^8X  d   V^,          ^8X  g   Q h\        \	        V4      RRV ^
R7      pVP
                  P                  P                  4       pV^ ,          ^8X  d   V^,          ^
8X  g   Q h\        ^^W$R	V ^
R7      pVP
                  P                  P                  4       pV^ ,          ^8X  d   V^,          ^8X  g   Q h\        \        4      ;_uu_ 4        \        \	        V4      RR
R7       RRR4       R#   + '       g   i     R# ; i)re   r_   r2   )ra   sizerc   rn   )r$  rc   rn   )ra   r$  N)      )r   r   )      )r      )r2   r+   r	   r   r   r   figget_size_inchesr#   r.   r   )rc   r_   r   s1r   s2r   s3s   &       r@   test_plot_sizer/    s   :12sA	c!flR
!B		(	(	*BqEQJRUaZ((	c!flR
!B		(	(	*BqEQJRUb[))	!QVR
!B		(	(	*BqEQJRUaZ((	
		SV\8 
			s   E%%E6	c                  j   \         '       g   \        R 4       \        R4      p \        \	        V 4      \
        RR7       \        \	        V 4      \        RR7      pVP                  \        8X  g   Q h\        V^ ,          P                  4       ^ ,          4      ^8  g   Q h\        \	        V 4      \        RR7      pVP                  \        8X  g   Q h\        V^ ,          P                  4       ^ ,          4      ^8  g   Q h\        \	        V 4      \        RR7      pVP                  \        8X  g   Q h\        V^ ,          P                  4       ^ ,          4      ^8  g   Q h\        \        4      ;_uu_ 4        VP                  4        RRR4       \        \        4      ;_uu_ 4        VP                  R4       RRR4       \        \        4      ;_uu_ 4        VP                   P#                  4        RRR4       R#   + '       g   i     L}; i  + '       g   i     L_; i  + '       g   i     R# ; i)re   r_   F)ra   rU   Nz	test/path)r2   r+   r	   r   r   r   r$   ra   r   r   rO   r6   r.   r   rU   rY   r   r\   )r_   r   r   r   s       r@   test_issue_20113r1    s{   :12sA 	QE*	c!f/e	<B::****r!u~~"#r)))	c!fn5	9B::'''r!u~~"#r))) 
c!f/e	<B::****r!u~~"#r)))	#	$	$
	 
%	#	$	$
 
%	#	$	$
 
%	$	 
%	$	$	$	$	$	$s$   5G;%HH!;H	H	!H2	c            	      J   \        R 4      p \        R4      p\        \        V 4      R R7       \        \        V 4      ^R7       \        \        V 4      RR7       \        \        V 4      \	        V 4      R R7       \        \        V 4      \	        V 4      ^R7       \        \        V 4      \	        V 4      RR7       \        \        V 4      \	        V 4      V R R7       \        \        V 4      \	        V 4      V ^R7       \        \        V 4      \	        V 4      V RR7       \        \        W,           4      \	        W,
          4      W,
          V R^3VR^3R R7       \        \        W,           4      \	        W,
          4      W,
          V R^3VR^3^R7       \        \        W,           4      \	        W,
          4      W,
          V R^3VR^3RR7       \        W,          V R^3VR^3R	 R7       \        W,          V R^3VR^3^R7       \        W,          V R^3VR^3RR7       R
# )r_   rf   c                     V # r8   rD   rq   s   &r@   rs   &test_custom_coloring.<locals>.<lambda>      arC   )r   rc                     V # r8   rD   rq   s   &r@   rs   r4    s    rC   c                     V # r8   rD   rq   s   &r@   rs   r4  "  s    1rC   c                 0    V ^,          V^,          ,           # r(  rD   r   s   &&r@   rs   r4  '      q!tad{rC   )r   c                 0    V ^,          V^,          ,           # r:  rD   r   s   &&r@   rs   r4  /  r;  rC   Nr~   )r	   r   r   r   r   r   r    r   ry   s     r@   test_custom_coloringr=    s   sAsAQK(QAQC CFCF{;CFCFq1CFCFs33q63q61E3q63q61;3q63q61=c!%j#ae*aeAJB
24 c!%j#ae*aeAJB
 c!%j#ae*aeAJB
 13B
QAJ24
13B
QAJa8
13B
QAJc:rC   c                    \         '       g   \        R 4       \        R4      p\        V4      p\	        W!R^
3RV ^
R7      p\        4       ;_uu_ 4        V^ ,          P                  4        RRR4       R#   + '       g   i     R# ; i)re   r_   Fr   Nr   )r2   r+   r	   r   r   r/   get_segmentsr   s   &   r@   test_deprecated_get_segmentsr@  4  s`    :12sAAAQC58rBA		!	!	! 
"	!	!	!s   A44B	c                 0   \         '       g   \        R 4       \        R4      p\        VR^ ^.^ ^..RRRR/.RRR	R/.R. ROR
. RO/R	RR^R^/.V ^
R7      p\	        VP
                  P                  P                  4      ^8X  g   Q h\	        VP
                  P                  P                  4      ^8X  g   Q h\	        VP
                  P                  P                  4      ^8X  g   Q h\	        VP
                  P                  P                  4      ^8X  g   Q hR# )re   r_   r>   marker*	linestylenoner`   testxyy1widthheight)markersannotationsfill
rectanglesrc   rn   Nr   r   r   r{   r(  r)  )r2   r+   r	   r   r   r   r  collectionspatcheslinestextsr   s   &  r@   test_generic_data_seriesrU  @  s     :12sAQ1a&1a&)8S+vNOfdF34<|467Ax;<R	!A qzz}}(()Q...qzz}}$$%***qzz}}""#q(((qzz}}""#q(((rC   c                  H   \         '       g   \        R 4       \        R4      p \        \	        V 4      V R^
3RR7      p\        4       ;_uu_ 4        R^ ^.^ ^..RRRR/.Vn        R	R	R	4       \        VP                  4      ^8X  g   Q h\        4       ;_uu_ 4        R
RRR/.Vn	        R	R	R	4       \        VP                  4      ^8X  g   Q h\        4       ;_uu_ 4        R. ROR. RO/Vn
        R	R	R	4       \        VP                  4      ^8X  g   Q h\        4       ;_uu_ 4        RRR^R^/.Vn        R	R	R	4       \        VP                  4      ^8X  g   Q hR	#   + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     Lg; i)re   r_   Fr   r>   rB  rC  rD  rE  Nr`   rF  rG  rH  rI  rJ  r   rO  rP  )r2   r+   r	   r   r   r/   rK  r   r   rL  rM  rN  r  s     r@   3test_deprecated_markers_annotations_rectangles_fillrW  S  sC   :12sASVab\.A		!	!q!fq!f-xk6RS	 
"qyy>Q		!	! &$78 
"qyy>Q		!	!|T<8 
"qyy>Q		!	!vw8Q?@ 
"qyy>Q 
"	! 
"	! 
"	! 
"	!s0   EE+E>#FE(	+E;	>F	F!	c            
         \         '       g   \        R 4       \        R4      p \        R4      p\        \	        V 4      R^R7      p\        V^ ,          P                  4       4      ^8X  g   Q h\        V^ ,          P                  4       4      ^8X  g   Q h\        \        V 4      \	        V 4      V ^ ^3R^R7      p\        V^ ,          P                  4       4      ^8X  g   Q h\        V^ ,          P                  4       4      ^8X  g   Q h\        \        V 4      \	        V 4      W ^ ^3R^R7      p\        V^ ,          P                  4       4      ^8X  g   Q h\        V^ ,          P                  4       4      ^8X  g   Q h\        \        V ^,          V^,          ,           4      V \        ) \        3V\        ) \        3^R7      p\        V^ ,          P                  4       4      ^8X  g   Q h\        V^ ,          P                  4       4      ^8X  g   Q h\        \        V ^,          V^,          ,           4      V \        ) \        3V\        ) \        3^R7      p\        V^ ,          P                  4       4      ^8X  g   Q h\        V^ ,          P                  4       4      ^8X  g   Q h\        V \        V4      ,          V \	        V4      ,          V \        ^V,          4      ,          ^,          V ^ \        3V^ ^\        ,          3^R7      p\        V^ ,          P                  4       4      ^8X  g   Q h\        V^ ,          P                  4       4      ^8X  g   Q hR# )re   r_   rf   Frw   )rn   N)r2   r+   r	   r   r   r   
get_pointsr   r   r   r   r   r   
get_meshesr"   r    r_   rf   r   s      r@   test_back_compatibilityr\  g  s   :12sAsASVeq)Aqt !Q&&&qt}}1$$$AAAq	EQGAqt !Q&&&qt}}1$$$s1vs1vqa)!	Aqt !Q&&&qt}}1$$$s1a4!Q$;!bS"B3|qAAqt !Q&&&qt}}1$$$SA1%B3|a"b\QGAqt !Q&&&qt}}1$$$!!c!f*a#a&j!c!a%j.1:L	
Ar
Q1R4LA	'Aqt !Q&&&qt}}1$$$rC   c                  2   \         '       g   \        R 4       \        R4      w  r\        V ^,           4      p\	        V^ ,          \
        4      '       g   Q hV^ ,          P                  V ^,           8X  g   Q hV^ ,          P                  V R^
3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        V ^,           R4      p\	        V^ ,          \
        4      '       g   Q hV^ ,          P                  V ^,           8X  g   Q hV^ ,          P                  V R^
3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        V ^,           V R^34      pV^ ,          P                  V R^3.8X  g   Q h\        V ^,           V R^3RRR/4      pV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  RR/8X  g   Q h\        V ^,           V ^,          4      p\	        V^ ,          \
        4      '       g   Q hV^ ,          P                  V ^,           8X  g   Q hV^ ,          P                  V R^
3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\	        V^,          \
        4      '       g   Q hV^,          P                  V ^,          8X  g   Q hV^,          P                  V R^
3.8X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  / 8X  g   Q h\        V ^,           V ^,          V ^ ^34      pV^ ,          P                  V ^ ^3.8X  g   Q hV^,          P                  V ^ ^3.8X  g   Q h\        V ^,           V ^,          V ^ ^3RR/4      pV^ ,          P                  V ^ ^3.8X  g   Q hV^,          P                  V ^ ^3.8X  g   Q hV^ ,          P                  RR/8X  g   Q hV^,          P                  RR/8X  g   Q h\        V ^,           V ^ ^33V ^,          V R^3RRR/34      p\	        V^ ,          \
        4      '       g   Q hV^ ,          P                  V ^,           8X  g   Q hV^ ,          P                  V ^ ^3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\	        V^,          \
        4      '       g   Q hV^,          P                  V ^,          8X  g   Q hV^,          P                  V R^3.8X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  RR/8X  g   Q hR	 p\        R
 4      p\	        V^ ,          \
        4      '       g   Q h\        V^ ,          P                  4      '       g   Q hV^ ,          P                  ^ ,          R,          R8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        VRR4      pV^ ,          P                  ^ ,          R,          R8X  g   Q hV^ ,          P                  R4      R8X  g   Q hR# )re   x, yFzx + 1rm   rF  colorr6  zx**2c                     V # r8   rD   ts   &r@   rs   %test_plot_arguments.<locals>.<lambda>  s    !rC   c                     V # r8   rD   ra  s   &r@   rs   rc    s    qrC   r{   NN Nr   r}   r   r   )rb  r~   r'  )r~   r'  )r2   r+   r
   r   
isinstancer&   r   ranges	get_labelrendering_kwcallabler_   rf   r   r   s       r@   test_plot_argumentsrn    s   :126?DA 	QUAad12222Q499AQ4;;AsB<.(((Q4>>% G+++Q4""" 	QUGAad12222Q499AQ4;;AsB<.(((Q4>>% G+++Q4""" 	QUQAJAQ4;;Ar1:,&&& 	QUQAJ#7AQ4>>% F***Q4#... 	QUAqDAad12222Q499AQ4;;AsB<.(((Q4>>% G+++Q4"""ad12222Q4991Q4;;AsB<.(((Q4>>% F***Q4""" 	QUAqD1a)$AQ4;;Aq!9+%%%Q4;;Aq!9+%%% 	QUAqD1a)gs^4AQ4;;Aq!9+%%%Q4;;Aq!9+%%%Q4#...Q4#... 		
QAq		
A2qz6GS>2	4A ad12222Q499AQ4;;Aq!9+%%%Q4>>% G+++Q4"""ad12222Q4991Q4;;Ar1:,&&&Q4>>% F***Q4#... 	A[Aad12222AaDIIQ4;;q>"***Q4>>% B&&&Q4""" 	Qf%AQ4;;q>"(((Q4>>% F***rC   c            	      V   \         '       g   \        R 4       \        R4      w  r\        V ^,           V 4      p\	        V^ ,          \
        4      '       g   Q hV^ ,          P                  V ^,           V 38X  g   Q hV^ ,          P                  V R^
3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        V ^,           W R^3RRR/4      pV^ ,          P                  V ^,           V 38X  g   Q hV^ ,          P                  V R^3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  RR/8X  g   Q h\        V ^,           V 3V R^3R4      pV^ ,          P                  V ^,           V 38X  g   Q hV^ ,          P                  V R^3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        V ^,           V 3V ^,          V ^,           34      pV^ ,          P                  V ^,           V 38X  g   Q hV^ ,          P                  V R^
3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  V ^,          V ^,           38X  g   Q hV^,          P                  V R^
3.8X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  / 8X  g   Q h\        V ^,           V 3V^,          V^,           R34      pV^ ,          P                  V ^,           V 38X  g   Q hV^ ,          P                  V R^
3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  V^,          V^,           38X  g   Q hV^,          P                  VR^
3.8X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  / 8X  g   Q h\        V ^,           V 3V ^,          V ^,           3V R^34      pV^ ,          P                  V ^,           V 38X  g   Q hV^ ,          P                  V R^3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  V ^,          V ^,           38X  g   Q hV^,          P                  V R^3.8X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  / 8X  g   Q h\        V ^,           W R^3R3V ^,          V ^,           V R^3RRR/34      pV^ ,          P                  V ^,           V 38X  g   Q hV^ ,          P                  V R^3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  V ^,          V ^,           38X  g   Q hV^,          P                  V R^3.8X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  RR/8X  g   Q hR	 pR
 p\        W44      p\        ;QJ d-    R V^ ,          P                   4       F  '       d   K   RM"	  RM! R V^ ,          P                   4       4      '       g   Q hV^ ,          P                  ^ ,          R,          R8X  g   Q hRV^ ,          P                  R4      9   g   Q hV^ ,          P                  / 8X  g   Q h\        W4RR4      p\        ;QJ d-    R V^ ,          P                   4       F  '       d   K   RM"	  RM! R V^ ,          P                   4       4      '       g   Q hV^ ,          P                  ^ ,          R,          R8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hR# )re   r^  Fr_   rF  cmapRedstest1test2c                     V # r8   rD   ra  s   &r@   rs   0test_plot_parametric_arguments.<locals>.<lambda>&      1rC   c                     ^V ,          # r:  rD   ra  s   &r@   rs   ru  '      1q5rC   c              3   8   "   T F  p\        V4      x  K  	  R # 5ir8   rl  .0rb  s   & r@   	<genexpr>1test_plot_parametric_arguments.<locals>.<genexpr>)       .Iqx{{I   Tre  Dummyc              3   8   "   T F  p\        V4      x  K  	  R # 5ir8   rz  r{  s   & r@   r}  r~  0  r  r  Nr   r}   r   rg  rb  r   r(  r   r(  )r2   r+   r
   r   rh  r'   r   ri  rj  rk  all)r_   rf   r   fxfys        r@   test_plot_parametric_argumentsr    sQ   :126?DA 	Aq!Aad23333Q499Q
"""Q4;;AsB<.(((Q4>>% C'''Q4""" 	Aqb!*f		AQ499Q
"""Q4;;Ar1:,&&&Q4>>% F***Q4 0000Q
QAJ7AQ499Q
"""Q4;;Ar1:,&&&Q4>>% F***Q4""" 	Q
Q!VQUO4AQ499Q
"""Q4;;AsB<.(((Q4>>% C'''Q4"""Q499aQ'''Q4;;AsB<.(((Q4>>% C'''Q4""" 	Q
Q!VQUF$;<AQ499Q
"""Q4;;AsB<.(((Q4>>% C'''Q4"""Q499aQ'''Q4;;AsB<.(((Q4>>% F***Q4""" 	Q
Q!VQUOaQZ@AQ499Q
"""Q4;;Ar1:,&&&Q4>>% C'''Q4"""Q499aQ'''Q4;;Ar1:,&&&Q4>>% C'''Q4""" 		
Qr1:w'	
aQB
Gff-=>	@A Q499Q
"""Q4;;Ar1:,&&&Q4>>% G+++Q4"""Q499aQ'''Q4;;Ar1:,&&&Q4>>% G+++Q4 0000 
B	BA3.AaDII.333.AaDII.....Q4;;q>"***adnnU++++Q4""" 	V4A3.AaDII.333.AaDII.....Q4;;q>"'''Q4>>% F***Q4"""rC   c            
      l   \         '       g   \        R 4       \        R4      w  r\        V ^,           V \	        V 4      4      p\        V^ ,          \        4      '       g   Q hV^ ,          P                  V ^,           V \	        V 4      38X  g   Q hV^ ,          P                  V R^
3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        V ^,           V \	        V 4      V R^3RRR/4      p\        V^ ,          \        4      '       g   Q hV^ ,          P                  V ^,           V \	        V 4      38X  g   Q hV^ ,          P                  V R^3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  RR/8X  g   Q h\        V ^,           V \	        V 4      3V R^3R4      pV^ ,          P                  V ^,           V \	        V 4      38X  g   Q hV^ ,          P                  V R^3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        V ^,           V \	        V 4      3V ^,          ^\        V 4      RR/34      pV^ ,          P                  V ^,           V \	        V 4      38X  g   Q hV^ ,          P                  V R^
3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  V ^,          ^\        V 4      38X  g   Q hV^,          P                  V R^
3.8X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  RR/8X  g   Q h\        V ^,           V \	        V 4      3V^,          ^\        V4      34      pV^ ,          P                  V ^,           V \	        V 4      38X  g   Q hV^ ,          P                  V R^
3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  V^,          ^\        V4      38X  g   Q hV^,          P                  VR^
3.8X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  / 8X  g   Q h\        V ^,           V \	        V 4      3V ^,          ^\        V 4      V R^3RRR/34      pV^ ,          P                  V ^,           V \	        V 4      38X  g   Q hV^ ,          P                  V R^
3.8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  V ^,          ^\        V 4      38X  g   Q hV^,          P                  V R^3.8X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  RR/8X  g   Q hR pR	 pR
 p\        W4V4      p\        ;QJ d-    R V^ ,          P                   4       F  '       d   K   RM"	  RM! R V^ ,          P                   4       4      '       g   Q hV^ ,          P                  ^ ,          R,          R8X  g   Q hRV^ ,          P                  R4      9   g   Q hV^ ,          P                  / 8X  g   Q h\        W4VRR4      p\        ;QJ d-    R V^ ,          P                   4       F  '       d   K   RM"	  RM! R V^ ,          P                   4       4      '       g   Q hV^ ,          P                  ^ ,          R,          R8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hR# )re   r^  Fr_   rF  rp  rq  rf   c                     V # r8   rD   ra  s   &r@   rs   7test_plot3d_parametric_line_arguments.<locals>.<lambda>y  rv  rC   c                     ^V ,          # r:  rD   ra  s   &r@   rs   r  z  rx  rC   c                     ^V ,          # )r)  rD   ra  s   &r@   rs   r  {  rx  rC   c              3   8   "   T F  p\        V4      x  K  	  R # 5ir8   rz  r{  s   & r@   r}  8test_plot3d_parametric_line_arguments.<locals>.<genexpr>}  r  r  Tre  r  c              3   8   "   T F  p\        V4      x  K  	  R # 5ir8   rz  r{  s   & r@   r}  r    r  r  Nr   r}   rg  r  r  )r2   r+   r
   r   r   rh  r(   r   ri  rj  rk  r   r  )r_   rf   r   r  r  fzs         r@   %test_plot3d_parametric_line_argumentsr  6  s   :126?DA 	q1uaQ0Aad23333Q499Q3q6****Q4;;AsB<.(((Q4>>% C'''Q4""" 	q1uaQ!R 	"Aad23333Q499Q3q6****Q4;;Ar1:,&&&Q4>>% F***Q4 0000Aq#a&1Ar1:vFAQ499Q3q6****Q4;;Ar1:,&&&Q4>>% F***Q4""" 		
Q3q6Q!VQA0@A	CAQ499Q3q6****Q4;;AsB<.(((Q4>>% C'''Q4"""Q499aCF++++Q4;;AsB<.(((Q4>>% C'''Q4 0000 	Aq#a&1AFAs1v3FGAQ499Q3q6****Q4;;AsB<.(((Q4>>% C'''Q4"""Q499aCF++++Q4;;AsB<.(((Q4>>% C'''Q4""" 		
Q3q6	
aCFQAJ0@A	CA Q499Q3q6****Q4;;AsB<.(((Q4>>% C'''Q4"""Q499aCF++++Q4;;Ar1:,&&&Q4>>% F***Q4 0000 
B	B	Brr*A3.AaDII.333.AaDII.....Q4;;q>"***adnnU++++Q4""" 	rr;?A3.AaDII.333.AaDII.....Q4;;q>"'''Q4>>% F***Q4"""rC   c            	         \         '       g   \        R 4       \        R4      w  r\        W,           4      p\	        V^ ,          \
        4      '       g   Q hV^ ,          P                  W,           8X  g   Q hV^ ,          P                  ^ ,          V R^
38X  g   VR^
3'       g   Q hV^ ,          P                  ^,          V R^
38X  g   VR^
3'       g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        W,           V R^3RRR/4      p\	        V^ ,          \
        4      '       g   Q hV^ ,          P                  W,           8X  g   Q hV^ ,          P                  ^ ,          V R^38X  g   Q hV^ ,          P                  ^,          VR^
38X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  RR/8X  g   Q h\        W,           V R^3VR^3R4      pV^ ,          P                  ^ ,          V R^38X  g   Q hV^ ,          P                  ^,          VR^38X  g   Q h\        W,           W,          4      pV^ ,          P                  W,           8X  g   Q hV^ ,          P                  ^ ,          V R^
38X  g   VR^
3'       g   Q hV^ ,          P                  ^,          V R^
38X  g   VR^
3'       g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  W,          8X  g   Q hV^,          P                  ^ ,          V R^
38X  g   VR^
3'       g   Q hV^,          P                  ^,          V R^
38X  g   VR^
3'       g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  / 8X  g   Q h\        W,           W,          V R^3VR^34      pV^ ,          P                  W,           8X  g   Q hV^ ,          P                  ^ ,          V R^38X  g   Q hV^ ,          P                  ^,          VR^38X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  W,          8X  g   Q hV^,          P                  ^ ,          V R^38X  g   Q hV^,          P                  ^,          VR^38X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  / 8X  g   Q h\        W,           V R^3VR^33W,          V R^3VR^3RRR/34      pV^ ,          P                  W,           8X  g   Q hV^ ,          P                  ^ ,          V R^38X  g   Q hV^ ,          P                  ^,          VR^38X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  W,          8X  g   Q hV^,          P                  ^ ,          V R^38X  g   Q hV^,          P                  ^,          VR^38X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  RR/8X  g   Q hR p\        V4      p\        V^ ,          P                  4      '       g   Q hV^ ,          P                  ^ ,          R	,          R8X  g   Q hV^ ,          P                  ^,          R	,          R8X  g   Q hV^ ,          P                  R4      R
8X  g   Q hV^ ,          P                  / 8X  g   Q h\        VRRR4      p\        V^ ,          P                  4      '       g   Q hV^ ,          P                  ^ ,          R	,          R8X  g   Q hV^ ,          P                  ^,          R	,          R8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        \        W4      V ^ ^
3V^ ^
34      p\	        V^ ,          \
        4      '       g   Q hV^ ,          P                  \        W4      8X  g   Q hV^ ,          P                  ^ ,          V ^ ^
38X  g   Q hV^ ,          P                  ^,          V^ ^
38X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hR# )re   r^  Fzx + yrF  rp  rq  zx*yc                     W,           # r8   rD   ry   s   &&r@   rs   4test_plot3d_plot_contour_arguments.<locals>.<lambda>  s    QUrC   re  rf  z	Min(x, y)Nr   r}   r   irg  )rr   r~   r)  )rv   r}   r{   )r~   r)  )r}   r{   )r2   r+   r
   r   rh  r*   r   ri  rj  rk  rl  r   rm  s       r@   "test_plot3d_plot_contour_argumentsr    s   :126?DA 	quAad45555Q499Q4;;q>ab\)ab\99Q4;;q>ab\)ab\99Q4>>% G+++Q4""" 	quq"aj&66*:;Aad45555Q499Q4;;q>aQZ'''Q4;;q>ab\)))Q4>>% F***Q4 0000quq"aj1b!*f5AQ4;;q>aQZ'''Q4;;q>aQZ''' 	quaeAQ499Q4;;q>ab\)ab\99Q4;;q>ab\)ab\99Q4>>% G+++Q4"""Q499Q4;;q>ab\)ab\99Q4;;q>ab\)ab\99Q4>>% E)))Q4""" 	quaeaQZ!R4AQ499Q4;;q>aQZ'''Q4;;q>aQZ'''Q4>>% G+++Q4"""Q499Q4;;q>aQZ'''Q4;;q>aQZ'''Q4>>% E)))Q4""" 		
B
QAJ'	
B
QAJ0@A	CA Q499Q4;;q>aQZ'''Q4;;q>aQZ'''Q4>>% G+++Q4"""Q499Q4;;q>aQZ'''Q4;;q>aQZ'''Q4>>% F***Q4 0000 	Aq	AAaDIIQ4;;q>"***Q4;;q>"***Q4>>% B&&&Q4""" 	q,f5AAaDIIQ4;;q>"(((Q4;;q>"(((Q4>>% F***Q4""" 	s1y1a*q!Rj1Aad45555Q499A	!!!Q4;;q>aBZ'''Q4;;q>aBZ'''Q4>>% K///Q4"""rC   c                     \         '       g   \        R 4       \        R4      w  r\        W,           \	        W,           4      \        W,           4      4      p\        V^ ,          \        4      '       g   Q hV^ ,          P                  W,           \	        W,           4      \        W,           4      38X  g   Q hV^ ,          P                  ^ ,          V R^
38X  g   VR^
3'       g   Q hV^ ,          P                  ^,          V R^
38X  g   VR^
3'       g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        W,           \	        W,           4      \        W,           4      V R^3VR^3RRR/4      p\        V^ ,          \        4      '       g   Q hV^ ,          P                  W,           \	        W,           4      \        W,           4      38X  g   Q hV^ ,          P                  ^ ,          V R^38X  g   Q hV^ ,          P                  ^,          VR^38X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  RR/8X  g   Q h\        W,           \	        W,           4      \        W,           4      3W,
          \	        W,
          4      \        W,
          4      R34      pV^ ,          P                  W,           \	        W,           4      \        W,           4      38X  g   Q hV^ ,          P                  ^ ,          V R^
38X  g   VR^
3'       g   Q hV^ ,          P                  ^,          V R^
38X  g   VR^
3'       g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  W,
          \	        W,
          4      \        W,
          4      38X  g   Q hV^,          P                  ^ ,          V R^
38X  g   VR^
3'       g   Q hV^,          P                  ^,          V R^
38X  g   VR^
3'       g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  / 8X  g   Q h\        W,           \	        W,           4      \        W,           4      V R^3R3W,
          \	        W,
          4      \        W,
          4      V R^3VR^3RRR/34      pV^ ,          P                  W,           \	        W,           4      \        W,           4      38X  g   Q hV^ ,          P                  ^ ,          V R^38X  g   Q hV^ ,          P                  ^,          VR^
38X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q hV^,          P                  W,
          \	        W,
          4      \        W,
          4      38X  g   Q hV^,          P                  ^ ,          V R^38X  g   Q hV^,          P                  ^,          VR^38X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  RR/8X  g   Q h\        R R	 R
 RR4      p\        ;QJ d-    R V^ ,          P                   4       F  '       d   K   RM"	  RM! R V^ ,          P                   4       4      '       g   Q hV^ ,          P                  ^ ,          R,          R8X  g   Q hV^ ,          P                  ^,          R,          R8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        R R R RR3R R R R R!R34      p\        ;QJ d-    R V^ ,          P                   4       F  '       d   K   RM"	  RM! R V^ ,          P                   4       4      '       g   Q hV^ ,          P                  ^ ,          R,          R8X  g   Q hV^ ,          P                  ^,          R,          R8X  g   Q hV^ ,          P                  R4      R8X  g   Q hV^ ,          P                  / 8X  g   Q h\        ;QJ d-    R V^,          P                   4       F  '       d   K   RM"	  RM! R V^,          P                   4       4      '       g   Q hV^,          P                  ^ ,          R,          R"8X  g   Q hV^,          P                  ^,          R,          R#8X  g   Q hV^,          P                  R4      R8X  g   Q hV^,          P                  / 8X  g   Q hR# )$re   r^  Fz(x + y, cos(x + y), sin(x + y))rF  rp  rq  rs  c                     V # r8   rD   uvs   &&r@   rs   :test_plot3d_parametric_surface_arguments.<locals>.<lambda>(  s    QrC   c                     V# r8   rD   r  s   &&r@   rs   r  (  r   rC   c                     W,           # r8   rD   r  s   &&r@   rs   r  (  s    QUrC   c              3   8   "   T F  p\        V4      x  K  	  R # 5ir8   rz  r{  s   & r@   r}  ;test_plot3d_parametric_surface_arguments.<locals>.<genexpr>*  r  r  Tre  rf  c                     V # r8   rD   r  s   &&r@   rs   r  3      arC   c                     V# r8   rD   r  s   &&r@   rs   r  3  r5  rC   c                     W,           # r8   rD   r  s   &&r@   rs   r  3      aerC   c                     V# r8   rD   r  s   &&r@   rs   r  5  r  rC   c                     V # r8   rD   r  s   &&r@   rs   r  5  r5  rC   c                     W,
          # r8   rD   r  s   &&r@   rs   r  5  r  rC   c              3   8   "   T F  p\        V4      x  K  	  R # 5ir8   rz  r{  s   & r@   r}  r  7  r  r  c              3   8   "   T F  p\        V4      x  K  	  R # 5ir8   rz  r{  s   & r@   r}  r  <  r  r  Nr   r}   r  r   )r  r   r(  )r  r   r&  r  )r   r&  )r  r}   r)  )r  r  r   )r}   r)  )r  r   )r2   r+   r
   r    r   r   rh  r)   r   ri  rj  rk  r  r[  s      r@   (test_plot3d_parametric_surface_argumentsr    s~   :126?DA 	"!%QUSZ@Aad34444Q499AE
CJ7777Q4;;q>ab\)ab\99Q4;;q>ab\)ab\99Q4>>% $EEEEQ4""" 	"!%QUSZ	
B
QAJ(8	:Aad34444Q499AE
CJ7777Q4;;q>aQZ'''Q4;;q>aQZ'''Q4>>% F***Q4 0000 	"	
AE
CJ'	
AE
CJ/	1A Q499AE
CJ7777Q4;;q>ab\)ab\99Q4;;q>ab\)ab\99Q4>>% $EEEEQ4"""Q499AE
CJ7777Q4;;q>ab\)ab\99Q4;;q>ab\)ab\99Q4>>% F***Q4""" 	"	
AE
CJB
F;	
AE
CJB
QAJff%	'	(A Q499AE
CJ7777Q4;;q>aQZ'''Q4;;q>ab\)))Q4>>% F***Q4"""Q499AE
CJ7777Q4;;q>aQZ'''Q4;;q>aQZ'''Q4>>% G+++Q4 0000 	"(:\	#A 3.AaDII.333.AaDII.....Q4;;q>"(((Q4;;q>"(((Q4>>% B&&&Q4""" 	"	);\	#	);lF	,	-A
 3.AaDII.333.AaDII.....Q4;;q>"'''Q4;;q>"(((Q4>>% B&&&Q4"""3.AaDII.333.AaDII.....Q4;;q>"(((Q4;;q>"(((Q4>>% F***Q4"""rC   )lr   tempfiler   pytestsympy.concrete.summationsr   sympy.core.numbersr   r   r   sympy.core.relationalr   sympy.core.symbolr	   r
   &sympy.functions.elementary.exponentialr   r   r   r   (sympy.functions.elementary.miscellaneousr   r   $sympy.functions.elementary.piecewiser   (sympy.functions.elementary.trigonometricr   r   r   sympy.functions.special.hyperr   sympy.integrals.integralsr   sympy.logic.boolalgr   sympy.core.singletonr   sympy.core.sympifyr   sympy.externalr   sympy.plotting.plotr   r   r   r   r   r    r!   r"   r#   r$   r%   sympy.plotting.seriesr&   r'   r(   r)   r*   sympy.testing.pytestr+   r,   r-   r.   r/   sympy.utilitiesr0   r   sympy.utilities.exceptionsr1   RuntimeErrorr2   r6   rO   rb   markparametrizer   r   r   r   r   r   r   r   r   r   r   r   r  r  r	  r  r  r  r"  r/  r1  r=  r@  rU  rW  r\  rn  r  r  r  r  rD   rC   r@   <module>r     s>   	 '  ) * * $ - R R F : ? 8 1 . # " & ( H H7 7 a ` 1 6 
 W\OE
# #T  .
 dE]3N 4Nb dE]3B 4BJ dE]3O 4Od dV, -& dE]3 4B dE]3$3 4$3N dE]3' 4'T dE]3 4( dE]3#2 4#2L	2 dE]3- 4- dE]3 4 dE]3) 4) dE]3
) 4
) bc- d-" dE]3
) 4
) dE]3) 4). dE]3  4   dE]3 ! 4 !F dE]39 49.6;6 dE]3 4 dE]3) 4)$(%8T+nY#xQ#h_#DT#rC   