+
    ‹°³jL7  ã                   óv   € ^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 R	]4      tR
 tR# )é   )ÚPlotInterval)Ú
PlotObject)Úparse_option_string©ÚSymbol)Úsympify)ÚGeometryEntity)Úis_sequencec            	       ó$  a € ] tR t^
t o RtRRutt. t. tRt	R t
. t^^/ ^/ /^^/ ^/ /^^/ ^/ //t^/ ^/ ^/ /t^^uttR t]R 4       t]RR l4       t]RR l4       t]R	 4       t]R
 4       tRt]R 4       tR tR t]R 4       t]R 4       tRtV tR# )ÚPlotModezØ
Grandparent class for plotting
modes. Serves as interface for
registration, lookup, and init
of modes.

To create a new plot mode,
inherit from PlotModeBase
or one of its children, such
as PlotSurface or PlotCurve.
Ú Fc                ó   € \        4       h©N)ÚNotImplementedError)Úselfs   &Úd/home/luca/screen-checking/.venv/lib/python3.14/site-packages/sympy/plotting/pygletplot/plot_mode.pyÚdrawÚPlotMode.draw%   s   € Ü!Ó#Ð#ó    c                ó´  € \         P                  W4      w  r4VP                  RR4      p\         P                  V4      w  rg\         P	                  Wg4      p\        \        V4      \        V4      .4      \        V4      r©\         P                  WYV
4      p\        P                  V4      pWln
        VP                  V4       VP                  V4       WLn        V# )zž
This is the function which interprets
arguments given to Plot.__init__ and
Plot.__setattr__. Returns an initialized
instance of the appropriate child class.
Úmoder   )r   Ú_extract_optionsÚgetÚ_interpret_argsÚ_find_i_varsÚmaxÚlenÚ	_get_modeÚobjectÚ__new__Úd_varsÚ_fill_i_varsÚ_fill_intervalsÚoptions)ÚclsÚargsÚkwargsÚnewargsÚ	newkwargsÚmode_argr!   Ú	intervalsÚi_varsÚiÚdÚsubclsÚos   &*,          r   r    ÚPlotMode.__new__<   s¸   € ô &×6Ñ6°tÓDÑˆØ—=‘= ¨Ó,ˆô %×4Ñ4°WÓ=ÑˆÜ×&Ñ& vÓ9ˆÜ”C˜“K¤ Y£Ð0Ó1´3°v³;ˆ1ô ×#Ñ# H°Ó3ˆô �N‰N˜6Ó"ˆð ŒØ	�‰�vÔØ	×Ñ˜)Ô$ØŒ	àˆr   c                ó  €  Rp\        V \        4      '       d   T pX'       d­   TP                  '       g)   \	        RTP
                  : RTP
                  : R24      hY#P                  8w  d)   \	        RTP
                  TP                  3,          4      hYP                  8”  d)   \	        RTP
                  TP                  3,          4      hT# \        T \        4      '       dŠ   YrTT\        P                  8”  d   \	        \        RR4      4      hT\        P                  8”  d   \	        \        RR4      4      hT '       g   \        P                  YE4      # \        P                  YT4      # \	        R	4      h  \         d     ELli ; i)
aå  
Tries to return an appropriate mode class.
Intended to be called only by __new__.

mode_arg
    Can be a string or a class. If it is a
    PlotMode subclass, it is simply returned.
    If it is a string, it can an alias for
    a mode or an empty string. In the latter
    case, we try to find a default mode for
    the i_var_count and d_var_count.

i_var_count
    The number of independent variables
    needed to evaluate the d_vars.

d_var_count
    The number of dependent variables;
    usually the number of functions to
    be evaluated in plotting.

For example, a Cartesian function y = f(x) has
one i_var (x) and one d_var (y). A parametric
form x,y,z = f(u,v), f(u,v), f(u,v) has two
two i_vars (u,v) and three d_vars (x,y,z).
NzTo use unregistered plot mode z you must first call z._init_mode().z7%s can only plot functions with %i dependent variables.zA%s cannot plot functions with more than %i independent variables.TFz-PlotMode argument must be a class or a string)Ú
issubclassr   Ú	TypeErrorÚ_was_initializedÚ
ValueErrorÚ__name__Úd_var_countÚi_var_countÚ
isinstanceÚstrÚ
_i_var_maxÚvar_count_errorÚ
_d_var_maxÚ_get_default_modeÚ_get_aliased_mode)r*   r9   r8   Úmr-   r.   s   &&&   r   r   ÚPlotMode._get_modeZ   si  € ð@	ØˆAÜ˜(¤H×-Ò-Ø�÷ Ø×%×%Ð%Ý à$%§J¤J°·
´
ð"<ó =ð =ð Ÿm™mÔ+Ü ð #Aà$%§J¡JØ%&§]¡]ð$4õ"4ó 5ð 5ð Ÿ]™]Ô*Ü ð #/ð %&§J¡JØ%&§]¡]ð$4õ"4ó 5ð 5ð
 ˆHä�h¤×$Ò$ØˆqØ”8×&Ñ&Ô&Ü ¤°°tÓ!<Ó=Ð=Ø”8×&Ñ&Ô&Ü ¤°¸Ó!=Ó>Ð>÷ Ü×1Ñ1°!Ó7Ð7ô  ×1Ñ1°(¸qÓAÐAäð 3ó 4ð 4øôG ô 	Úð	ús   ‚E: Å:F	ÆF	c                óþ   € VR8X  d   T p \         P                  V,          V ,          #   \         dI    T \         P                  8  d    \         P	                  T ^,           Y4      u # \        RY!3,          4      hi ; i)r   zKCouldn't find a default mode for %i independent and %i dependent variables.éÿÿÿÿ)r   Ú_mode_default_mapÚKeyErrorr<   r?   r6   )r-   r.   r,   s   &&&r   r?   ÚPlotMode._get_default_mode¤   s�   € à�RŒ<ØˆFð	IÜ×-Ñ-¨aÕ0°Õ3Ð3øÜô 		Ið ”8×&Ñ&Ô&Ü×1Ñ1°!°aµ%¸ÓCÒCä ð #9à=C¸Kõ"Hó Ið Ið		Iús   ‹) ©=A<Á(A<c                óš  € VR8X  d   TpV \         P                  9  d2   \        RV : RRP                  \         P                  4      : R24      h \         P                  V,          V,          V ,          #   \
         dJ    T\         P                  8  d    \         P                  Y^,           Y#4      u # \        RYT3,          4      hi ; i)r   zCouldn't find a mode called z. Known modes: z, Ú.zFCouldn't find a %s mode for %i independent and %i dependent variables.rD   )r   Ú_mode_alias_listr6   ÚjoinÚ	_mode_mapr4   r<   r@   )Úaliasr-   r.   r,   s   &&&&r   r@   ÚPlotMode._get_aliased_modeµ   s¼   € à�RŒ<ØˆFØœ×1Ñ1Ô1Ýã % t§y¡y´×1JÑ1JÖ'KðMó Nð Nð	7Ü×%Ñ% aÕ(¨Õ+¨EÕ2Ð2øÜô 
	7ð ”8×&Ñ&Ô&Ü×1Ñ1°%¸Q½ÀÓJÒJä ð #9ð %*°1Ð#5õ"6ó 7ð 7ð
	7ús   Á$A6 Á6=C
Â5C
c           	     óø  € V P                   pV P                  4         V P                  V P                  r2V P                   FX  pV\
        P                  9  d    \
        P                  P                  V4       V \
        P                  V,          V,          V&   KZ  	  V P                  '       d   V \
        P                  V,          V&   R# R#   \         d"   p\        RT: R\        T4      : 24      hRp?ii ; i)z€
Called once for each user-usable plot mode.
For Cartesian2D, it is invoked after the
class definition: Cartesian2D._register()
zFailed to register plot mode z
. Reason: N)r7   Ú
_init_moder9   r8   Úaliasesr   rJ   ÚappendrL   Ú
is_defaultrE   Ú	ExceptionÚRuntimeErrorr;   )r%   Únamer-   r.   ÚaÚes   &     r   Ú	_registerÚPlotMode._registerË   sÍ   € ð �|‰|ˆØ�‰Ôð	3Ø—?‘? C§O¡Oˆqð —[”[�ØœH×5Ñ5Ô5ô ×-Ñ-×4Ñ4°QÔ7Ø.1”×"Ñ" 1Õ% aÕ(¨Ó+ñ !ð �~�~ˆ~ð 47”×*Ñ*¨1Õ-¨aÓ0ñ	 øô ô 	3Ýã"&¬¨Q­ð 2ó 3ð 3ûð	3ús   žBC Â/C ÃC9ÃC4Ã4C9c                ó<  € R pV! V P                   4      V n         V! V P                  4      V n        \        V P                   4      V n        \        V P                  4      V n        V P                  \
        P                  8”  d   \        \        RR4      4      hV P                  \
        P                  8”  d   \        \        RR4      4      h\        V P                  4      ^ 8”  d   V P                  ^ ,          V n        MV P                  V n        V P                  p\        V4      V P                  8w  d   \        R4      h\        V P                  4       F9  p\        W#,          4      ^8w  d   \        R4      h\        R.W#,          O5!  W#&   K;  	  RV n        R# )zÕ
Initializes the plot mode based on
the 'mode-specific parameters' above.
Only intended to be called by
PlotMode._register(). To use a mode without
registering it, you can directly call
ModeSubclass._init_mode().
c                 óB   € V  Uu. uF  p\        V4      NK  	  up# u upi r   r   )Ú
symbol_strÚss   & r   Úsymbols_listÚ)PlotMode._init_mode.<locals>.symbols_listõ   s   € Ù'1Ó2¡z !”F˜1–I¡zÑ2Ð2ùÒ2s   …TFz9Plot mode must provide a default interval for each i_var.zlength should be equal to 3N)r,   r!   r   r9   r8   r   r<   r6   r=   r>   rQ   Úprimary_aliasr7   r+   Úranger   r5   )r%   r_   Údir-   s   &   r   rP   ÚPlotMode._init_modeë   s;  € ò	3ñ
 " #§*¡*Ó-ˆŒ
Ù! #§*¡*Ó-ˆŒ
ô ˜cŸj™j›/ˆŒÜ˜cŸj™j›/ˆŒà�?‰?œX×0Ñ0Ô0Üœ_¨T°5Ó9Ó:Ð:Ø�?‰?œX×0Ñ0Ô0Üœ_¨U°EÓ:Ó;Ð;ô ˆs�{‰{Ó˜aÔØ #§¡¨A¥ˆCÕà #§¡ˆCÔà�]‰]ˆÜˆr‹7�c—o‘oÔ%Üð @ó Að Aä�s—‘Ö'ˆAô �2•5‹z˜QŒÜ Ð!>Ó?Ð?ô
 ! Ð.¨­Ó.ˆB‹Eñ (ð  $ˆÖr   c                óH  € . pV Fd  pVP                   f   K  VP                   V9   d&   \        R\        VP                   4      ,          4      hVP                  VP                   4       Kf  	  V  F/  pVP                   F  pWR9  g   K  VP                  V4       K  	  K1  	  V# )Nz Multiple intervals given for %s.)Úvr6   r;   rR   Úfree_symbols)Ú	functionsr+   r,   r-   ÚfrW   s   &&    r   r   ÚPlotMode._find_i_vars$  sŽ   € àˆó
 ˆAØ�s‰sŠ{ÙØ—‘˜”Ü ð #,Ü03°A·C±C³õ":ó ;ð ;à�M‰M˜!Ÿ#™#Öñ ó ˆAØ—^”^�Ø–?Ø—M‘M !Ö$ó $ñ ð
 ˆr   c                óÖ   € V P                    Uu. uF  p\        \        V4      4      NK  	  upV n         \        \	        V4      4       F  pW,          V P                   V&   K  	  R # u upi r   )r,   r   r;   rb   r   )r   r,   r-   s   && r   r"   ÚPlotMode._fill_i_vars=  sK   € à/3¯{ª{Ó;©{¨!”vœc !›f–~©{Ñ;ˆŒä”s˜6“{Ö#ˆAØ#�YˆD�K‰K˜‹Nó $ùò <s   �A&c                ó  € V P                    Uu. uF  p\        V4      NK  	  upV n         . p\        \        V4      4       Fx  pV P                   V,          P	                  W,          4       V P                   V,          P
                  f   KL  VP                  V P                   V,          P
                  4       Kz  	  \        \        V P                   4      4       F™  pV P                   V,          P
                  e   K$  V P                   Uu. uF  qDV9  g   K  VNK  	  pp\        V4      ^ 8X  d   \        R4      hV^ ,          V P                   V,          n        VP                  V^ ,          4       K›  	  R # u upi u upi )Nzlength should not be equal to 0)	r+   r   rb   r   Ú	fill_fromrf   rR   r,   r6   )r   r+   r-   Úv_usedrf   Úus   &&    r   r#   ÚPlotMode._fill_intervalsD  s  € à37·>²>ÓB±>¨aœ, qž/±>ÑBˆŒàˆô ”s˜9“~Ö&ˆAØ�N‰N˜1Õ×'Ñ'¨	­Ô5Ø�~‰~˜aÕ ×"Ñ"Ô.Ø—‘˜dŸn™n¨QÕ/×1Ñ1Ö2ñ 'ô ”s˜4Ÿ>™>Ó*Ö+ˆAØ�~‰~˜aÕ ×"Ñ"Ô*Ø $§¢Ó?¡˜1¸©—Q�Q¡�Ð?Ü�q“6˜Q”;Ü$Ð%FÓGÐGØ&'¨¥d�—‘˜qÕ!Ô#Ø—‘˜a �dÖ#ó ,ùò Cùò @s   �E:ÄE?ÄE?c                óî  € R pRp. . rC\        V ^ ,          \        4      '       dv   \        V ^ ,          P                  4       4       F  pVP	                  V4       K  	  VP	                  \
        P                  ! V ^ ,          P                  4       4      4       W43# V  Fª  p\
        P                  ! V4      pVe?   \        V4      ^ 8X  d   \        V\        V4      ,          4      hVP	                  V4       K[  \        V\        R7      '       d   \        V\        V4      ,          4      h \        V4      pVP	                  V4       K¬  	  W43#   \         d    \        T\        T4      ,          4      hi ; i)z1PlotInterval %s was given before any function(s).z1Could not interpret %s as a function or interval.)Úinclude)r:   r	   ÚlistÚarbitrary_pointrR   r   Ú	try_parseÚplot_intervalr   r6   r;   r
   r   r4   )	r&   Úinterval_wrong_orderÚinterpret_errorrh   r+   ÚcoordsrW   r-   ri   s	   &        r   r   ÚPlotMode._interpret_argsY  s@  € àRÐØMˆà! 2�9Ü�d˜1•gœ~×.Ò.Ü˜t A�w×6Ñ6Ó8Ö9�Ø× Ñ  Ö(ñ :à×Ñœ\×3Ò3°D¸µG×4IÑ4IÓ4KÓLÔMð$ Ð#Ð#ó! �Ü ×*Ò*¨1Ó-�Ø’=Ü˜9“~¨Ô*Ü(Ð)=ÄÀQÃÕ)HÓIÐIà!×(Ñ(¨Ö+ä" 1¬c×2Ó2Ü(¨¼CÀ»FÕ)CÓDÐDðCÜ# A›J˜Ø!×(Ñ(¨Ö+ñ ð  Ð#Ð#øô %ô CÜ(¨¼3¸q»6Õ)AÓBÐBðCús   Ä*EÅ'E4c                ó´   € / . r2V  FA  p\        V\        4      '       d   \        V3/ \        V4      B pK0  VP	                  V4       KC  	  \        V3/ VB pW23# r   )r:   r;   Údictr   rR   )r&   r'   r)   r(   rW   s   &&   r   r   ÚPlotMode._extract_optionsv  s[   € à �7ÛˆAÜ˜!œS×!Ò!Ü  ÑEÔ.AÀ!Ó.DÑE’	à—‘˜qÖ!ñ	 ô
 ˜Ñ- fÑ-ˆ	ØÐ!Ð!r   )r,   r+   N)rD   ) r7   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r,   r!   r+   rQ   rS   r   rJ   rL   rE   r<   r>   r    Ústaticmethodr   r?   r@   ÚclassmethodrY   rP   r5   r   r"   r#   r   r   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r   
   sE  ø‡ € ñ
ð" ˜€N€FˆFØ€IØ€GØ€Jò$ð Ðà	ˆAˆr�1�bˆ>Ø	ˆAˆr�1�bˆ>Ø	ˆAˆr�1�bˆ>ð€Ið 	
ˆ2Ø	ˆ2Ø	ˆ2ðÐð
  Ð€J�
òð< ñG4ó ðG4ðR óIó ðIð  ó7ó ð7ð* ñ3ó ð3ð> ñ2$ó ð2$ðh Ðð ñó ðò0'ò$ð* ñ$ó ð$ð8 ñ"ó ö"r   r   c                óˆ   € V'       d   RpMRpV '       d   \         P                  RrCM\         P                  RrCRW#V3,          # )zE
Used to format an error message which differs
slightly in 4 places.
ÚPlottingzRegistering plot modesÚindependentÚ	dependentz3%s with more than %i %s variables is not supported.)r   r<   r>   )Úis_independentÚis_plottingrf   Únr^   s   &&   r   r=   r=   ‚  sD   € ÷
 Ø‰à$ˆßÜ×"Ñ" M‰1ä×"Ñ" Kˆ1ð Ø$%¨! 9õ-ð -r   N)rw   r   Úplot_objectr   Úutilr   Úsympy.core.symbolr   Úsympy.core.sympifyr   Úsympy.geometry.entityr	   Úsympy.utilities.iterablesr
   r   r=   © r   r   Ú<module>r–      s.   ðÝ 'Ý #Ý %Ý $Ý &Ý 0Ý 1ôu"ˆzô u"ôp-r   