Ë
    ªehA>  ã                   óÐ   — d Z ddlZddlZddlmZ ddlmZ g d¢Zg d¢Zg d¢Z		 	 dd	„Z
d
„ Zd„ Zd„ Zdd„Zdd„Zdd„Zdd„Z G d„ de«      Z G d„ de«      Z G d„ de«      Zdd„Zy)zGControl plot style and scaling using the matplotlib rcParams interface.é    N)Úcycleré   )Úpalettes)	Ú	set_themeÚsetÚreset_defaultsÚ
reset_origÚ
axes_styleÚ	set_styleÚplotting_contextÚset_contextÚset_palette)úaxes.facecolorúaxes.edgecolorú	axes.gridúaxes.axisbelowúaxes.labelcolorúfigure.facecolorú
grid.colorúgrid.linestyleú
text.colorúxtick.colorúytick.colorúxtick.directionúytick.directionúlines.solid_capstyleúpatch.edgecolorúpatch.force_edgecolorú
image.cmapúfont.familyúfont.sans-serifúxtick.bottomú	xtick.topú
ytick.leftúytick.rightúaxes.spines.leftúaxes.spines.bottomúaxes.spines.rightúaxes.spines.top)ú	font.sizeúaxes.labelsizeúaxes.titlesizeúxtick.labelsizeúytick.labelsizeúlegend.fontsizeúlegend.title_fontsizeúaxes.linewidthúgrid.linewidthúlines.linewidthúlines.markersizeúpatch.linewidthúxtick.major.widthúytick.major.widthúxtick.minor.widthúytick.minor.widthúxtick.major.sizeúytick.major.sizeúxtick.minor.sizeúytick.minor.sizec                 ó˜   — t        | |«       t        |d|i¬«       t        ||¬«       |� t        j                  j                  |«       yy)aÓ  
    Set aspects of the visual theme for all matplotlib and seaborn plots.

    This function changes the global defaults for all plots using the
    matplotlib rcParams system. The themeing is decomposed into several distinct
    sets of parameter values.

    The options are illustrated in the :doc:`aesthetics <../tutorial/aesthetics>`
    and :doc:`color palette <../tutorial/color_palettes>` tutorials.

    Parameters
    ----------
    context : string or dict
        Scaling parameters, see :func:`plotting_context`.
    style : string or dict
        Axes style parameters, see :func:`axes_style`.
    palette : string or sequence
        Color palette, see :func:`color_palette`.
    font : string
        Font family, see matplotlib font manager.
    font_scale : float, optional
        Separate scaling factor to independently scale the size of the
        font elements.
    color_codes : bool
        If ``True`` and ``palette`` is a seaborn palette, remap the shorthand
        color codes (e.g. "b", "g", "r", etc.) to the colors from this palette.
    rc : dict or None
        Dictionary of rc parameter mappings to override the above.

    Examples
    --------

    .. include:: ../docstrings/set_theme.rst

    r    )Úrc)Úcolor_codesN)r   r   r   ÚmplÚrcParamsÚupdate)ÚcontextÚstyleÚpaletteÚfontÚ
font_scaler@   r?   s          úK/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/seaborn/rcmod.pyr   r   R   sD   € ôJ �˜Ô$Üˆe˜¨Ð-Õ.Ü� [Õ1Ø	€~Ü�‰×Ñ˜BÕð ó    c                  ó   — t        | i |¤Ž y)zy
    Alias for :func:`set_theme`, which is the preferred interface.

    This function may be removed in the future.
    N)r   )ÚargsÚkwargss     rI   r   r   ~   s   € ô ˆtÐ�vÓrJ   c                  ó^   — t         j                  j                  t         j                  «       y)z*Restore all RC params to default settings.N)rA   rB   rC   ÚrcParamsDefault© rJ   rI   r   r   ‡   s   € ä‡L�L×Ñœ×+Ñ+Õ,rJ   c                  óN   — ddl m}  t        j                  j	                  | «       y)z@Restore all RC params to original settings (respects custom rc).r   ©Ú_orig_rc_paramsN)Ú rS   rA   rB   rC   rR   s    rI   r	   r	   Œ   s   € å!Ü‡L�L×Ñ˜Õ(rJ   c           
      óÐ  — | €'t         D �ci c]  }|t        j                  |   “Œ }}�n5t        | t        «      r| }�n!g d¢}| |vrt        ddj                  |«      › �«      ‚d}d}i dd“d|“d	d
“dd
“d|“d|“dd“dd“d|“ddg“dg d¢“dd“dd“dd“dd“dd“d d“}d!| v r|j                  d"di«       n|j                  d"di«       | j                  d#«      r|j                  d$ddddddd%œ«       n<| d&k(  r|j                  d||ddddd%œ«       n| d'v r|j                  d||ddddd%œ«       | d(k(  r|j                  ddd)œ«       n|j                  ddd)œ«       |j                  «       D ��ci c]  \  }}|t         v sŒ||“Œ }}}|�=|j                  «       D ��ci c]  \  }}|t         v sŒ||“Œ }}}|j                  |«       t        |«      }|S c c}w c c}}w c c}}w )*aú  
    Get the parameters that control the general style of the plots.

    The style parameters control properties like the color of the background and
    whether a grid is enabled by default. This is accomplished using the
    matplotlib rcParams system.

    The options are illustrated in the
    :doc:`aesthetics tutorial <../tutorial/aesthetics>`.

    This function can also be used as a context manager to temporarily
    alter the global defaults. See :func:`set_theme` or :func:`set_style`
    to modify the global defaults for all plots.

    Parameters
    ----------
    style : None, dict, or one of {darkgrid, whitegrid, dark, white, ticks}
        A dictionary of parameters or the name of a preconfigured style.
    rc : dict, optional
        Parameter mappings to override the values in the preset seaborn
        style dictionaries. This only updates parameters that are
        considered part of the style definition.

    Examples
    --------

    .. include:: ../docstrings/axes_style.rst

    )ÚwhiteÚdarkÚ	whitegridÚdarkgridÚtickszstyle must be one of ú, z.15z.8r   rV   r   r   Úoutr   r   r   r   Tr   ú-r   r    ú
sans-serifr!   )ÚArialzDejaVu SanszLiberation SanszBitstream Vera Sansr^   r   Úroundr   Úwr   r   Úrocketr#   Fr%   Úgridr   rW   z#EAEAF2)r   r   r   r&   r'   r(   r)   rX   )rV   rZ   rZ   )r"   r$   )Ú_style_keysrA   rB   Ú
isinstanceÚdictÚ
ValueErrorÚjoinrC   Ú
startswithÚitemsÚ
_AxesStyle)	rE   r?   ÚkÚ
style_dictÚstylesÚ	dark_grayÚ
light_grayÚvÚstyle_objects	            rI   r
   r
   ’   sí  € ð< €}Ü2=Ö>¨Q�aœŸ™ a™Ñ(Ð>ˆ
Ò>ä	�Eœ4Ô	 ØŠ
ò EˆØ˜ÑÜÐ4°T·Y±Y¸vÓ5FÐ4GÐHÓIÐIð ˆ	Øˆ
ð
à ð
ð ˜yð
ð
 ˜uð
ð ˜uð
ð ˜9ð
ð ˜9ð
ð ˜dð
ð ˜cð
ð ˜)ð
ð ˜L˜>ð
ð  ò  Eð!
ð( # Gð)
ð* ˜sð+
ð, $ Tð-
ð0 ˜(ð1
ð4 ˜ð5
ð6 ˜5ð7
ˆ
ð@ �U‰?Ø×ÑØ˜Tðõ ð ×ÑØ˜Uðô ð
 ×Ñ˜FÔ#Ø×Ñà"+Ø")Ø%à$(Ø&*Ø%)Ø#'ñõ ð �kÒ!Ø×Ñà")Ø",Ø(à$(Ø&*Ø%)Ø#'ñõ ð Ð(Ñ(Ø×Ñà")Ø"+Ø(à$(Ø&*Ø%)Ø#'ñô ð �GÒØ×ÑØ $Ø"ñõ ð
 ×ÑØ %Ø#ñô ð $.×#3Ñ#3Ó#5×J™4˜1˜a¸¼kÒ9I�!�Q‘$ÐJ€JÑJð 
€~Ø!Ÿx™x›z×>‘t�q˜!¨Q´+Ò-=ˆa�‰dÐ>ˆÑ>Ø×Ñ˜"Ôô ˜jÓ)€LàÐùòw ?ùób Kùó ?s   ‹GÅ2GÆGÆ G"Æ1G"c                 óZ   — t        | |«      }t        j                  j                  |«       y)ai  
    Set the parameters that control the general style of the plots.

    The style parameters control properties like the color of the background and
    whether a grid is enabled by default. This is accomplished using the
    matplotlib rcParams system.

    The options are illustrated in the
    :doc:`aesthetics tutorial <../tutorial/aesthetics>`.

    See :func:`axes_style` to get the parameter values.

    Parameters
    ----------
    style : dict, or one of {darkgrid, whitegrid, dark, white, ticks}
        A dictionary of parameters or the name of a preconfigured style.
    rc : dict, optional
        Parameter mappings to override the values in the preset seaborn
        style dictionaries. This only updates parameters that are
        considered part of the style definition.

    Examples
    --------

    .. include:: ../docstrings/set_style.rst

    N)r
   rA   rB   rC   )rE   r?   rr   s      rI   r   r   /  s"   € ô8 ˜e RÓ(€LÜ‡L�L×Ñ˜Õ%rJ   c                 óº  — | €&t         D �ci c]  }|t        j                  |   “Œ }}nÒt        | t        «      r| }n¿g d¢}| |vrt        ddj                  |«      › �«      ‚ddddddddœ}ddd	d
dddddd
d
dddœ}|j                  |«       t	        ddd	d¬«      |    }|j                  «       D ��	ci c]  \  }}	||	|z  “Œ }}}	|j                  «       }
|
D �ci c]  }|||   |z  “Œ }}|j                  |«       |�=|j                  «       D ��	ci c]  \  }}	|t         v sŒ||	“Œ }}}	|j                  |«       t        |«      }|S c c}w c c}	}w c c}w c c}	}w )a  
    Get the parameters that control the scaling of plot elements.

    These parameters correspond to label size, line thickness, etc. For more
    information, see the :doc:`aesthetics tutorial <../tutorial/aesthetics>`.

    The base context is "notebook", and the other contexts are "paper", "talk",
    and "poster", which are version of the notebook parameters scaled by different
    values. Font elements can also be scaled independently of (but relative to)
    the other values.

    This function can also be used as a context manager to temporarily
    alter the global defaults. See :func:`set_theme` or :func:`set_context`
    to modify the global defaults for all plots.

    Parameters
    ----------
    context : None, dict, or one of {paper, notebook, talk, poster}
        A dictionary of parameters or the name of a preconfigured set.
    font_scale : float, optional
        Separate scaling factor to independently scale the size of the
        font elements.
    rc : dict, optional
        Parameter mappings to override the values in the preset seaborn
        context dictionaries. This only updates parameters that are
        considered part of the context definition.

    Examples
    --------

    .. include:: ../docstrings/plotting_context.rst

    )ÚpaperÚnotebookÚtalkÚposterzcontext must be in r[   é   é   )r*   r+   r,   r-   r.   r/   r0   g      ô?r   g      ø?é   é   )r1   r2   r3   r4   r5   r6   r7   r8   r9   r:   r;   r<   r=   gš™™™™™é?é   )Ú_context_keysrA   rB   re   rf   rg   rh   rC   rj   ÚkeysÚ_PlottingContext)rD   rH   r?   rl   Úcontext_dictÚcontextsÚtexts_base_contextÚbase_contextÚscalingrq   Ú	font_keysÚ	font_dictÚcontext_objects                rI   r   r   O  s¬  € ðD €Ü4AÖB¨q˜œ3Ÿ<™<¨™?Ñ*ÐBˆÑBä	�GœTÔ	"Ø‰ò ;ˆØ˜(Ñ"ÜÐ2°4·9±9¸XÓ3FÐ2GÐHÓIÐIð
 Ø Ø Ø!Ø!Ø!Ø%'ñ

Ðð #ØØ"Ø !Ø à!%Ø!%Ø!"Ø!"à !Ø !Ø !Ø !ñ!
ˆð& 	×ÑÐ.Ô/ô ˜R¨!°#¸aÔ@ÀÑIˆØ3?×3EÑ3EÓ3G×H©4¨1¨a˜˜1˜w™;™ÐHˆÑHð '×+Ñ+Ó-ˆ	Ø>GÖH¸�Q˜ Q™¨*Ñ4Ñ4ÐHˆ	ÐHØ×Ñ˜IÔ&ð 
€~Ø!Ÿx™x›z×@‘t�q˜!¨Q´-Ò-?ˆa�‰dÐ@ˆÑ@Ø×Ñ˜BÔô & lÓ3€NàÐùò} Cùó^ Iùò Iùó
 As   ‹EÂ1EÃEÄEÄ!Ec                 ó\   — t        | ||«      }t        j                  j                  |«       y)a·  
    Set the parameters that control the scaling of plot elements.

    These parameters correspond to label size, line thickness, etc.
    Calling this function modifies the global matplotlib `rcParams`. For more
    information, see the :doc:`aesthetics tutorial <../tutorial/aesthetics>`.

    The base context is "notebook", and the other contexts are "paper", "talk",
    and "poster", which are version of the notebook parameters scaled by different
    values. Font elements can also be scaled independently of (but relative to)
    the other values.

    See :func:`plotting_context` to get the parameter values.

    Parameters
    ----------
    context : dict, or one of {paper, notebook, talk, poster}
        A dictionary of parameters or the name of a preconfigured set.
    font_scale : float, optional
        Separate scaling factor to independently scale the size of the
        font elements.
    rc : dict, optional
        Parameter mappings to override the values in the preset seaborn
        context dictionaries. This only updates parameters that are
        considered part of the context definition.

    Examples
    --------

    .. include:: ../docstrings/set_context.rst

    N)r   rA   rB   rC   )rD   rH   r?   rˆ   s       rI   r   r   ³  s%   € ôB & g¨z¸2Ó>€NÜ‡L�L×Ñ˜Õ'rJ   c                   ó   — e Zd Zd„ Zd„ Zd„ Zy)Ú_RCAestheticsc                 ó–   — t         j                  }| j                  D �ci c]  }|||   “Œ
 c}| _        | j	                  | «       y c c}w ©N)rA   rB   Ú_keysÚ_origÚ_set)Úselfr?   rl   s      rI   Ú	__enter__z_RCAesthetics.__enter__Ù  s9   € Ü�\‰\ˆØ(,¯
©
Ö3 1�a˜˜A™‘hÒ3ˆŒ
Ø�	‰	�$�ùò 4s   ŸAc                 ó:   — | j                  | j                  «       y r�   )r�   r�   )r‘   Úexc_typeÚ	exc_valueÚexc_tbs       rI   Ú__exit__z_RCAesthetics.__exit__Þ  s   € Ø�	‰	�$—*‘*ÕrJ   c                 óF   ‡ ‡— t        j                  ‰«      ˆˆ fd„«       }|S )Nc                  óD   •— ‰5   ‰| i |¤Žcd d d «       S # 1 sw Y   y xY wr�   rP   )rL   rM   Úfuncr‘   s     €€rI   Úwrapperz'_RCAesthetics.__call__.<locals>.wrapperâ  s(   ø€ àñ -Ù˜TÐ, VÑ,÷-÷ -ò -ús   „–)Ú	functoolsÚwraps)r‘   rš   r›   s   `` rI   Ú__call__z_RCAesthetics.__call__á  s%   ù€ Ü	�‰˜Ó	ô	-ó 
ð	-ð ˆrJ   N)Ú__name__Ú
__module__Ú__qualname__r’   r—   rž   rP   rJ   rI   r‹   r‹   Ø  s   „ òò
órJ   r‹   c                   ó$   — e Zd ZdZeZ ee«      Zy)rk   z1Light wrapper on a dict to set style temporarily.N)	rŸ   r    r¡   Ú__doc__rd   rŽ   Ústaticmethodr   r�   rP   rJ   rI   rk   rk   é  s   „ Ù;Ø€EÙ˜	Ó"�DrJ   rk   c                   ó$   — e Zd ZdZeZ ee«      Zy)r€   z3Light wrapper on a dict to set context temporarily.N)	rŸ   r    r¡   r£   r~   rŽ   r¤   r   r�   rP   rJ   rI   r€   r€   ï  s   „ Ù=Ø€EÙ˜Ó$�DrJ   r€   c                 óÌ   — t        j                  | ||«      }t        d|«      }|t        j                  d<   |r	 t        j
                  | «       yy# t        t        f$ r Y yw xY w)aÉ  Set the matplotlib color cycle using a seaborn palette.

    Parameters
    ----------
    palette : seaborn color palette | matplotlib colormap | hls | husl
        Palette definition. Should be something :func:`color_palette` can process.
    n_colors : int
        Number of colors in the cycle. The default number of colors will depend
        on the format of ``palette``, see the :func:`color_palette`
        documentation for more information.
    desat : float
        Proportion to desaturate each color by.
    color_codes : bool
        If ``True`` and ``palette`` is a seaborn palette, remap the shorthand
        color codes (e.g. "b", "g", "r", etc.) to the colors from this palette.

    See Also
    --------
    color_palette : build a color palette or set the color cycle temporarily
                    in a ``with`` statement.
    set_context : set parameters to scale plot elements
    set_style : set the default parameters for figure style

    Úcolorzaxes.prop_cycleN)r   Úcolor_paletter   rA   rB   Úset_color_codesrg   Ú	TypeError)rF   Ún_colorsÚdesatr@   ÚcolorsÚcyls         rI   r   r   õ  sg   € ô2 ×#Ñ# G¨X°uÓ=€FÜ
�˜&Ó
!€CØ&)„C‡L�LÐ"Ñ#Ùð	Ü×$Ñ$ WÕ-ð øô œIÐ&ò 	Ùð	ús   ºA ÁA#Á"A#)rv   rY   Údeepr^   r   TN)NN)Nr   N)NNF)r£   rœ   Ú
matplotlibrA   r   rT   r   Ú__all__rd   r~   r   r   r   r	   r
   r   r   r   rf   r‹   rk   r€   r   rP   rJ   rI   ú<module>r²      s‹   ðÙ MÛ Û Ý Ý ò€ò
&€òP€ð: =CØDHó) òXò-ò
)óZóz&ó@aóH"(ôJ�Dô ô"#�ô #ô%�}ô %ô rJ   