+
    i1                         ^ RI Ht ^ RIHt ^ RIHt ^ RIHu Hu H	t	 ^ RI
Ht R tR t ! R R	]	P                  4      tR# )
    )Callable)Basic)import_moduleN)latexc                 ^    \        V \        4      '       d   \        V R R7      # \        V 4      # )inline)mode)
isinstancer   r   str)labels   &r/var/www/html/photoedit/myenv/lib/python3.14/site-packages/sympy/plotting/backends/matplotlibbackend/matplotlib.py_str_or_latexr      s&    %U**u:    c                   . p. p\        V 4      '       d   V  F  pV^ ,          pV^,          pVP                  VP                  VP                  VP                  VP                  R.4       VP                  VP                  VP                  VP                  VP                  R.4       K  	  W3# VP                  R4       VP                  R4       W3# )z]
Returns lists for matplotlib ``fill`` command from a list of bounding
rectangular intervals
N)NNNN)lenextendstartend)interval_listxlistylist	intervals	intervalx	intervalys   &     r   _matplotlib_listr      s    
 EE
=&I!!I!!ILL)//9??#--> ?LL)//9==#--$@ A ' < 	-.-.<r   c                   n   a a ] tR t^+t oRtV 3R ltR t]RR l4       tR t	R t
R tR tR	 tR
tVtV ;t# )MatplotlibBackendz[This class implements the functionalities to use Matplotlib with SymPy
plotting functions.
c                6  < \         SV `  ! V/ VB  \        R R. R	O/R\        3R7      V n        V P                  P
                  V n        V P                  P                  V n        V P                  P                  P                  V n	        VP                  RR4      V n        V P                  R8w  d:   \        V P                  ^,          4      V P                  ^ ,          ,          V n        VP                  RR4      V n        VP                  RR4      V n        R# )

matplotlibfromlistz1.1.0)import_kwargsmin_module_versioncatchaspect_ratioautofigNax)pyplotcmcollections)super__init__r   RuntimeErrorr   r(   pltr)   r*   LineCollectiongetaspectfloatpop_plotgrid_fig_plotgrid_ax)selfserieskwargs	__class__s   &*,r   r,   MatplotlibBackend.__init__0   s    &+F+'%'FG&|o? ??))//$$"oo99HHjj8;;& A/$++a.@DK $ZZt4"JJtT2r   c                   R  pV P                   e   V P                   V n        V P                  V n        \        ;QJ d&    R V P
                   4       F  '       g   K   RM	  RM! R V P
                   4       4      '       g   V! V P                  4       R# R# V P                  P                  V P                  R7      V n        \        ;QJ d&    R V P
                   4       F  '       g   K   RM	  RM! R V P
                   4       4      '       d'   V P                  P                  ^^^RR7      V n        R# V P                  P                  ^^^4      V n        V! V P                  4       R# )	c                    V P                   R ,          P                  R4       V P                   R,          P                  R4       V P                   R,          P                  R4       V P                   R,          P                  R4       V P                  P	                  R4       V P
                  P	                  R 4       R# )leftzerorightnonebottomtopN)spinesset_position	set_colorxaxisset_ticks_positionyaxis)r'   s   &r   
set_spines4MatplotlibBackend._create_figure.<locals>.set_spinesA   s    IIf**62IIg((0IIh,,V4IIe&&v.HH''1HH''/r   Nc              3   8   "   T F  qP                   x  K  	  R # 5iNis_3D.0ss   & r   	<genexpr>3MatplotlibBackend._create_figure.<locals>.<genexpr>L   s     51ww   TF)figsizec              3   8   "   T F  qP                   x  K  	  R # 5irL   rM   rO   s   & r   rR   rS   P   s     1Lq77LrT   3d)
projection)
r4   r&   r5   r'   any_seriesr.   figuresizeadd_subplot)r6   rI   s   & r   _create_figure MatplotlibBackend._create_figure@   s    	0 )))DH''DG3553335555477# 6 xxtyy9DHs1DLL1sss1DLL111((..q!Q4.H((..q!Q7477#r   c                    \        R4      pVe   ^pWV3pM^pW3pVP                  P                  V4      P                  P	                  R^V4      pVP                  P                  VRR VR,          .^R7      # )a6  Convert two list of coordinates to a list of segments to be used
with Matplotlib's :external:class:`~matplotlib.collections.LineCollection`.

Parameters
==========
    x : list
        List of x-coordinates

    y : list
        List of y-coordinates

    z : list
        List of z-coordinates for a 3D line.
numpyN:   NN)axis)r   maarrayTreshapeconcatenate)xyznpdimpointss   &&&   r   get_segmentsMatplotlibBackend.get_segmentsV   s}      7#=CAYFCVFV$&&..r1c:uu  &"+vbz!: CCr   c                |   \        R 4      p\        RRR./R7      p. . . rvpV EF  pVP                  '       Ed   VP                  '       d   VP                  4       w  rpMVP                  4       w  r\	        VP
                  \        \        34      '       g   \        VP
                  4      '       dU   V P                  W4      pV P                  V4      pVP                  VP                  4       4       VP                  V4       K  \        VP                  4      pVP!                  WWP
                  R7      w  pEK  VP"                  '       d"   VP$                  ! VP                  4       !   EKN  VP&                  '       EdG   VP                  4       w  rpp\	        VP
                  \        \        34      '       g   \        VP
                  4      '       dk   VP(                  P*                  pV P                  WV4      pVP-                  V4      pVP                  VP                  4       4       VP                  V4       M3\        VP                  4      pVP!                  WVWP
                  R7       VP/                  VP0                  4       VP/                  VP2                  4       VP/                  VP4                  4       EK  VP6                  '       EdS   VP                  '       d   VP                  4       w  rpppMVP                  4       w  rpVP9                  WV\;        V P<                  RV P<                  P>                  4      ^^RR7      p\	        VP@                  \        \        \B        34      '       d>   VP                  4       pVPE                  VPF                  4      pVP                  V4       MVPI                  VP@                  4       VP/                  VP0                  4       VP/                  VP2                  4       VP/                  VP4                  4       EK  VPJ                  '       d   VP                  4       p\M        V4      ^8X  d6   \O        V^ ,          4      w  rVPQ                  WVP
                  R	R
7       EKs  V PR                  PT                  PV                  pV! RVP
                  .4      pVw  ppppVR8X  d   VP%                  VVVVR7       EK  VPY                  VVVVR7       EK  VPZ                  '       Ed   VP\                  R8X  d*   VP                   ! VP^                  / VP`                  B  EK2  VP\                  R8X  d*   VPb                  ! VP^                  / VP`                  B  EKl  VP\                  R8X  d*   VPd                  ! VP^                  / VP`                  B  EK  VP\                  R8X  dM   VPg                  V PR                  Ph                  Pj                  ! VP^                  / VP`                  B 4       EK  EK  \m        RPo                  V4      4      h	  VP(                  Pp                  p\	        VV4      '       g2   VPs                  VPu                  4       VPw                  4       R7       EMJV'       dT   VPy                  V4      pVP{                  VR,          4      VP}                  VR,          4      3pVP                  V4       MVP                  ^ ^.4       V'       dT   VPy                  V4      pVP{                  VR,          4      VP}                  VR,          4      3pVP                  V4       MVP                  ^ ^.4       V'       dT   VPy                  V4      pVP{                  VR,          4      VP}                  VR,          4      3pVP                  V4       MVP                  ^ ^.4       V P                  '       d.   \	        VV4      '       g   VP                  V P                  4       V P                  '       d.   \	        VV4      '       g   VP                  V P                  4       \	        VV4      '       d   V PR                  P                  R8  d   VP                  V P                  4       V P                  '       EdY   V P                  p \	        VV4      '       d   EM8V R8X  dF   VP                  R,          P                  R4       VP                  R,          P                  R4       MV R8X  d   VP                  4       w  p!p"VP                  4       w  p#p$V!V",          ^ 8:  d   RMRp%V#V$,          ^ 8:  d   RMRp&VP                  R,          P                  V%4       VP                  R,          P                  V&4       MVVP                  R,          P                  RV ^ ,          34       VP                  R,          P                  RV ^,          34       V P                  '       g   VP                  4        V P                  '       d<   VP                  4       '       d&   VP                  P                  V P                  4       V P                  '       d7   VP                  V P                  4       VP                  V P                  4       V P                  '       d   VP                  V P                  4       V P                  '       d)   \        V P                  4      p'VP                  V'RR7       V P                  '       d)   \        V P                  4      p(VP                  V(R R7       \	        VV4      '       d;   V P                  '       d)   \        V P                  4      p)VP                  V)R R7       V P                  '       d   VP                  V P                  4       V P                  '       d   VP                  V P                  4       V P                  P                  V P                  4       R# )!ra   mpl_toolkitsr    mplot3d)r!   )r   colorviridisg?)cmaprstridecstride	linewidthNone)	facecolor	edgecolorwhitecontour)rw   markersannotationsfill
rectangleszc{} is not supported in the SymPy plotting module with matplotlib backend. Please report this issue.)scalexscaleyz1.2.0centerr=   rA   r%   data)positionN)NNNr   )r   rb   )r   r   )rb   r   )r   rb   )cr   	is_2Dlineis_parametricget_datar
   
line_colorintr2   callablerp   r/   	set_arrayget_color_arrayadd_collectionr   r   plot
is_contourr   	is_3Dlinert   art3dLine3DCollectionappend_xlim_ylim_zlimis_3Dsurfaceplot_surfacegetattrr)   jetsurface_colorr   rh   r\   rE   is_implicitr   r   r   r   colorsListedColormapcontourf
is_generictypeargsrendering_kwannotatefill_between	add_patchpatches	RectangleNotImplementedErrorformatAxes3Dautoscale_viewget_autoscalex_onget_autoscaley_onrf   aminamaxset_xlimset_ylimset_zlimxscale
set_xscaleyscale
set_yscale__version__set_autoscale_on	autoscaleaxis_centerrC   rD   get_xlimget_ylimrc   set_axis_offlegendlegend_set_visiblemarginset_xmarginset_ymargintitle	set_titlexlabel
set_xlabelylabel
set_ylabelzlabel
set_zlabelxlimylimr'   
set_aspectr1   )*r6   r7   r'   rm   rs   xlimsylimszlimsrQ   rj   rk   paramsegments
collectionlbllinerl   r   uvcolor_arrayro   r   colormapxarrayyarrayzarray	plot_typer   r   r   zlimvalxlxhylyhpos_left
pos_bottomxlblylblzlbls*   &&&                                       r   _process_series!MatplotlibBackend._process_seriesp   s   7#$:	{*CE
 !"beA{{{???"#**,KA%::<DAq||c5\:: ..#006H!%!4!4X!>J(():):)<=%%j1'0CGGA<<GHED

AJJL)!"aq||c5\:: ..(0066E#00q9H!&!7!7!AJ(():):)<=%%j1'0CGGA!3llGCQWW%QWW%QWW%???$%JJLMA!QjjlGA!__Q1 )TWW[[AqC - 9
 aoosH/EFF"#"3"3"5K"-"5"5k6F6F"GK((5((9QWW%QWW%QWW%v;!#+F1I6DAGGAALLFGK
 &*__%;%;%J%JN-w.EFH8>5FFFI I-

666
IFFFJ66Y&GGQVV6q~~6VV},KK:1>>:VVv%OOQVV>q~~>VV|+LL//99VV7'(~~78 , *IVBZ! !i r %%,,"f%%++-++-  / d,bggeDk.BCD!QF#d,bggeDk.BCD!QF#d,bggeDk.BCD!QF#
 ;;;z"f55MM$++&;;;z"f55MM$++&"f%%)D)D)O/""C"f%%		&!..x8		(#00:BB*,R%1*;(,.rEQJ[H
		&!..x8		(#00<		&!..A/?@		(#00&#a&1AByyyOO;;;yy{{

&&t{{3;;;NN4;;'NN4;;':::LL$;;; -DMM$M0;;; -DMM$M0b&!!dkkk -DMM$M0 999KK		"999KK		"4;;'r   c                r    V P                  4        V P                  V P                  V P                  4       R# )zI
Iterates over every ``Plot`` object and further calls
_process_series()
N)r^   r   rZ   r'   r6   s   &r   process_series MatplotlibBackend.process_series&  s(    
 	T\\4773r   c                    V P                  4        \        P                  '       d7   V P                  P	                  4        V P
                  P                  4        R # V P                  4        R # rL   )r   base_backend_showr&   tight_layoutr.   showcloser   s   &r   r   MatplotlibBackend.show.  sB     HH!!#HHMMOJJLr   c                \    V P                  4        V P                  P                  V4       R # rL   )r   r&   savefig)r6   paths   &&r   saveMatplotlibBackend.save9  s     r   c                P    V P                   P                  V P                  4       R # rL   )r.   r   r&   r   s   &r   r   MatplotlibBackend.close=  s    txx r   )	r/   r5   r4   r1   r'   r)   r&   r   r.   rL   )__name__
__module____qualname____firstlineno____doc__r,   r^   staticmethodrp   r   r   r   r   r   __static_attributes____classdictcell____classcell__)r9   __classdict__s   @@r   r   r   +   sJ     3 $, D D2s(l4	! !r   r   )collections.abcr   sympy.core.basicr   sympy.externalr   $sympy.plotting.backends.base_backendplottingbackendsr   sympy.printing.latexr   r   r   Plotr    r   r   <module>r     s5    $ " ( ; ; &0S!)) S!r   