+
     ]i   c                   s>   R t ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIt^ RI	t
^ RI	HtHtHtHt ]P                  ! ]4      t. ROt]P&                  P)                  ]
P*                  ! 4       R4      t]P&                  P)                  ]
P.                  ! 4       R4      .tRt0 Rmt]P6                  ! RP)                  ]! RP:                  ]! ]]P@                  R7      4      4      4      R	 4       t!]PD                  RR
 l4       t#R t$R t%R t&]%! ]4      t'/ t(. t)R t*]*! 4        R# )aD  
Core functions and attributes for the matplotlib style library:

``use``
    Select style sheet to override the current matplotlib settings.
``context``
    Context manager to use a style sheet temporarily.
``available``
    List available style sheets.
``library``
    A dictionary of style names and matplotlib settings.
N)Path)_api
_docstring_rc_params_in_filercParamsDefaultZstylelibZmplstyleZ
z- {})Zkeyc           	     s8   \        V \        \        34      '       g   \        V R4      '       d   V .pMT pRRRR/pV EFz  p \        V \        4      '       d   VP	                  W 4      p V R8X  dV   \
        P                  ! 4       ;_uu_ 4        \         Uu/ uF  pV\        9  g   K  V\        V,          bK   	  p pRRR4       MoV \        9   d   \        V ,          p MVRV 9   dP   V P                  R4      w  rEp \        P                  P                  V4      V R\         2,          p\        V4      p \        V \        \        34      '       d    \        V 4      p / p
V  F5  pV\        9   d   \
        P&                  ! R	V: R
24       K+  W,          W&   K7  	  \(        P*                  P-                  V
4       EK}  	  R# u upi   + '       g   i     L; i  \         \"        \$        3 d   p Rp?LRp?ii ; i  \"         d   p	\#        T : R24      T	hRp	?	ii ; i)aW  
Use Matplotlib style settings from a style specification.

The style name of 'default' is reserved for reverting back to
the default style settings.

.. note::

   This updates the `.rcParams` with the settings from the style.
   `.rcParams` not defined in the style are kept.

Parameters
----------
style : str, dict, Path or list

    A style specification. Valid options are:

    str
        - One of the style names in `.style.available` (a builtin style or
          a style installed in the user library path).

        - A dotted name of the form "package.style_name"; in that case,
          "package" should be an importable Python package name, e.g. at
          ``/path/to/package/__init__.py``; the loaded style file is
          ``/path/to/package/style_name.mplstyle``.  (Style files in
          subpackages are likewise supported.)

        - The path or URL to a style file, which gets loaded by
          `.rc_params_from_file`.

    dict
        A mapping of key/value pairs for `matplotlib.rcParams`.

    Path
        The path to a style file, which gets loaded by
        `.rc_params_from_file`.

    list
        A list of style specifiers (str, Path or dict), which are applied
        from first to last in the list.

Notes
-----
The following `.rcParams` are not related to style and will be ignored if
found in a style specification:

%s
keysZmpl20ZdefaultZmpl15ZclassicNZ.z is not a valid package style, path of style file, URL of style file, or library style name (library styles are listed in `style.available`)zStyle includes a parameter, z9, that is not related to style.  Ignoring this parameter.)Z
isinstancestrr    ZhasattrZgetr   Z'suppress_matplotlib_deprecation_warningr   STYLE_BLACKLISTlibraryZ
rpartition	importlibZ	resourcesZfilesSTYLE_EXTENSIONr   ZModuleNotFoundErrorZOSErrorZ	TypeErrorZwarn_externalmplZrcParamsupdate)stylestylesZstyle_aliasZkZpkgZ_namepathZexcZerrZfiltereds   &          </usr/lib64/python3.14/site-packages/matplotlib/style/core.pyuser   *   s   h %#t%%)?)?Iw	:KeS!!OOE1E	! AACC<K :Oq ! 8 3Q 22OE : DC '!$//4
$..44S9tfAoEV<WWD.t4E ec4[))I*51 AO#""21% 8B CD $h  	H%S : DC ,Wi@    Ii  > ?@ FIIIsN   	GF>
'F>
9G9:GG9>GGG61G69HHHc              #  s   "   \         P                  ! 4       ;_uu_ 4        V'       d   \         P                  ! 4        \        V 4       Rx  RRR4       R#   + '       g   i     R# ; i5i)a  
Context manager for using style settings temporarily.

Parameters
----------
style : str, dict, Path or list
    A style specification. Valid options are:

    str
        - One of the style names in `.style.available` (a builtin style or
          a style installed in the user library path).

        - A dotted name of the form "package.style_name"; in that case,
          "package" should be an importable Python package name, e.g. at
          ``/path/to/package/__init__.py``; the loaded style file is
          ``/path/to/package/style_name.mplstyle``.  (Style files in
          subpackages are likewise supported.)

        - The path or URL to a style file, which gets loaded by
          `.rc_params_from_file`.
    dict
        A mapping of key/value pairs for `matplotlib.rcParams`.

    Path
        The path to a style file, which gets loaded by
        `.rc_params_from_file`.

    list
        A list of style specifiers (str, Path or dict), which are applied
        from first to last in the list.

after_reset : bool
    If True, apply style after resetting settings to their defaults;
    otherwise, apply style on top of the current settings.
N)r   Z
rc_contextZ
rcdefaultsr   )r   Zafter_resets   &&r   contextr      s:     J 
		NNE
	 
			s   A+-A
A+A(	"	A+c                s    \        \        P                  P                  \        4       F  p\        V4      p\        W4       K  	  V # )z0Update style library with user-defined rc files.)maposr   Z
expanduserUSER_LIBRARY_PATHSread_style_directoryupdate_nested_dict)r   Zstylelib_pathr   s   &  r   update_user_libraryr      s8    RWW//1CD%m47+ E N    c                s`   \        4       p\        V 4      P                  R\         24       Fk  p\        P
                  ! RR7      ;_uu_ 4       p\        V4      WP                  &   RRR4       X F#  p\        P                  RW$P                  4       K%  	  Km  	  V#   + '       g   i     L?; i)z3Return dictionary of styles defined in *style_dir*.z*.T)ZrecordNz	In %s: %s)Zdictr    Zglobr
   warningsZcatch_warningsr   Zstem_logZwarningZmessage)Z	style_dirr   r   ZwarnsZws   &    r   r   r      s    VFY$$r/):%;<$$D11U 24 8F99 2ALLdII6  =
 M	 21s   BB-c                sz    VP                  4        F&  w  r#V P                  V/ 4      P                  V4       K(  	  V # )a  
Update nested dict (only level of nesting) with new values.

Unlike `dict.update`, this assumes that the values of the parent dict are
dicts (or dict-like), so you shouldn't replace the nested dict if it
already exists. Instead you should update the sub-dict.
)ZitemsZ
setdefaultr   )Z	main_dictZnew_dictr   Zrc_dicts   &&  r   r   r      s8     ")T2&--g6 *r   c                 s    \         P                  4        \         P                  \        \        4      4       \        \         P                  4       4      \        R&   R# )zReload the style library.:NNNN)r   Zclearr   r   _base_librarysortedr   	available r   r   reload_libraryr!      s1    MMONN&}56',,.)IaLr   )r   r   r   r   r!   >   ZbackendZtoolbarZtimezoneZinteractiveZbackend_fallbackz
date.epochzwebagg.portzwebagg.addressztk.window_focuszsavefig.directoryzdocstring.hardcopyzfigure.raise_windowzwebagg.port_retrieszwebagg.open_in_browserzfigure.max_open_warning)F)+Z__doc__Z
contextlibZimportlib.resourcesr	   Zloggingr   Zpathlibr    r   Z
matplotlibr   r   r   r   r   Z	getLoggerZ__name__r   Z__all__r   ZjoinZget_data_pathZBASE_LIBRARY_PATHZget_configdirr   r
   r   ZSubstitutionr   Zformatr   r   Zlowerr   Zcontextmanagerr   r   r   r   r   r   r   r!   r    r   r   <module>r"      s      	    L L"
F GGLL!2!2!4jA ggll3#4#4#6
CD ( IIc&--SYY!GHIb&b&J ( (V  %%67
	*  r   