ó
    {ñ:in(  ã                   óB  • S r SSKJr  SSKrSSKJrJr  SSKJr	  SSK
Jr  SSKJr  SSKJr  SSKJr  \R(                  S	   rS
 r " S S\5      r\" \" 5       5      r\" 5       R5                  \5        \" \5      r\" \5      r\R:                  " SSSS9SS j5       rS rg)a|  
Builtin colormaps, colormap handling utilities, and the `ScalarMappable` mixin.

.. seealso::

  :doc:`/gallery/color/colormap_reference` for a list of builtin colormaps.

  :ref:`colormap-manipulation` for examples of how to make
  colormaps.

  :ref:`colormaps` an in-depth discussion of choosing
  colormaps.

  :ref:`colormapnorms` for more details about data normalization.
é    )ÚMappingN)Ú_apiÚcolors)Ú_ScalarMappable)Údatad)Úcmaps)Úcmap_familiesz	image.lutc                  ó  • 0 [         En [        R                  " 5        Hl  u  pSU;   a  [        R                  " X[
        5      OCSU;   a  [        R                  " US   U5      O#[        R                  R                  X[
        5      X'   Mn     SSSSS.nUR                  5        H!  u  pEX   R                  5       nXFl	        X`U'   M#     [        U R                  5       5       H!  nUR                  5       nXpUR                  '   M#     U $ )zk
Generate a dict mapping standard colormap names to standard colormaps, as
well as the reversed colormaps.
ÚredÚlistedÚgrayÚ	gist_grayÚ	gist_yargÚGreys)ÚgreyÚ	gist_greyÚ	gist_yergÚGrays)Úcmaps_listedr   Úitemsr   ÚLinearSegmentedColormapÚ_LUTSIZEÚListedColormapÚ	from_listÚcopyÚnameÚlistÚvaluesÚreversed)Úcmap_dr   ÚspecÚaliasesÚaliasÚoriginal_nameÚcmapÚrmaps           ÚP/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/matplotlib/cm.pyÚ_gen_cmap_registryr(       sô   € ð
 ”Ð€FÜ—k’k–m‰
ˆð ˜‹}ô ×*Ò*¨4´xÔ@ð ˜4Óô ×!Ò! $ x¡.°$Ô7ä×*Ñ*×4Ñ4°TÄÓJð 	‹ñ $ð Ø Ø Øñ€Gð !(§¡¦ÑˆØÑ$×)Ñ)Ó+ˆØŒ	Øˆu‹ñ !0ô �V—]‘]“_Ö%ˆØ�}‰}‹ˆØ ˆt�y‰yÓñ &ð €Mó    c                   óX   • \ rS rSrSrS rS rS rS rS r	S r
S	S
S.S jrS rS rSrg	)ÚColormapRegistryéB   a¯  
Container for colormaps that are known to Matplotlib by name.

The universal registry instance is `matplotlib.colormaps`. There should be
no need for users to instantiate `.ColormapRegistry` themselves.

Read access uses a dict-like interface mapping names to `.Colormap`\s::

    import matplotlib as mpl
    cmap = mpl.colormaps['viridis']

Returned `.Colormap`\s are copies, so that their modification does not
change the global definition of the colormap.

Additional colormaps can be added via `.ColormapRegistry.register`::

    mpl.colormaps.register(my_colormap)

To get a list of all registered colormaps, you can do::

    from matplotlib import colormaps
    list(colormaps)
c                 ó0   • Xl         [        U5      U l        g ©N)Ú_cmapsÚtupleÚ_builtin_cmaps)Úselfr   s     r'   Ú__init__ÚColormapRegistry.__init__Z   s   € ØŒÜ# E›lˆÕr)   c                 óz   •  U R                   U   R                  5       $ ! [         a    [        U< S35      S ef = f)Nz is not a known colormap name)r/   r   ÚKeyError)r2   Úitems     r'   Ú__getitem__ÚColormapRegistry.__getitem__^   sF   € ð	OØ—;‘;˜tÑ$×)Ñ)Ó+Ð+øÜó 	OÜ˜d™XÐ%BÐCÓDÈ$ÐNð	Oús   ‚ Ÿ:c                 ó,   • [        U R                  5      $ r.   )Úiterr/   ©r2   s    r'   Ú__iter__ÚColormapRegistry.__iter__d   s   € Ü�D—K‘KÓ Ð r)   c                 ó,   • [        U R                  5      $ r.   )Úlenr/   r<   s    r'   Ú__len__ÚColormapRegistry.__len__g   s   € Ü�4—;‘;ÓÐr)   c                 ó8   • SSR                  S U  5       5      -   $ )Nz'ColormapRegistry; available colormaps:
z, c              3   ó.   #   • U  H  nS U S 3v •  M     g7f)Ú'N© )Ú.0r   s     r'   Ú	<genexpr>Ú+ColormapRegistry.__str__.<locals>.<genexpr>l   s   é € Ð7²$¨$˜A˜d˜V 1�+²$ùs   ‚)Újoinr<   s    r'   Ú__str__ÚColormapRegistry.__str__j   s!   € Ø:Ø—	‘	Ñ7±$Ó7Ó7ñ8ð 	9r)   c                 ó   • [        U 5      $ )zÔ
Return a list of the registered colormap names.

This exists only for backward-compatibility in `.pyplot` which had a
``plt.colormaps()`` method. The recommended way to get this list is
now ``list(colormaps)``.
)r   r<   s    r'   Ú__call__ÚColormapRegistry.__call__n   s   € ô �D‹zÐr)   NF)r   Úforcec                óº  • [         R                  " [        R                  US9  U=(       d    UR                  nX ;   aP  U(       d  [        SU S35      eX R                  ;   a  [        SU< S35      e[         R                  " SU< S35        UR                  5       U R                  U'   U R                  U   R                  U:w  a  X R                  U   l        gg)	a  
Register a new colormap.

The colormap name can then be used as a string argument to any ``cmap``
parameter in Matplotlib. It is also available in ``pyplot.get_cmap``.

The colormap registry stores a copy of the given colormap, so that
future changes to the original colormap instance do not affect the
registered colormap. Think of this as the registry taking a snapshot
of the colormap at registration.

Parameters
----------
cmap : matplotlib.colors.Colormap
    The colormap to register.

name : str, optional
    The name for the colormap. If not given, ``cmap.name`` is used.

force : bool, default: False
    If False, a ValueError is raised if trying to overwrite an already
    registered name. True supports overwriting registered colormaps
    other than the builtin colormaps.
©r%   zA colormap named "z" is already registered.z Re-registering the builtin cmap z is not allowed.zOverwriting the cmap z" that was already in the registry.N)
r   Úcheck_isinstancer   ÚColormapr   Ú
ValueErrorr1   Úwarn_externalr   r/   )r2   r%   r   rP   s       r'   ÚregisterÚColormapRegistry.registerx   sÜ   € ô2 	×ÒœfŸo™o°DÒ9à× �t—y‘yˆØ‹<Þô !Ø(¨¨Ð.FÐGóIð Ià×,Ñ,Ó,ä Ð!CØ$(¡8Ð+;ð"=ó >ð >ô ×ÒÐ!6°t±hð ?Cð  Cô Dð !ŸI™I›Kˆ�‰�DÑð �;‰;�tÑ×!Ñ! TÓ)Ø%)�K‰K˜ÑÕ"ð *r)   c                 óz   • XR                   ;   a  [        SU< S35      eU R                  R                  US5        g)a†  
Remove a colormap from the registry.

You cannot remove built-in colormaps.

If the named colormap is not registered, returns with no error, raises
if you try to de-register a default colormap.

.. warning::

    Colormap names are currently a shared namespace that may be used
    by multiple packages. Use `unregister` only if you know you
    have registered that name before. In particular, do not
    unregister just in case to clean the name before registering a
    new colormap.

Parameters
----------
name : str
    The name of the colormap to be removed.

Raises
------
ValueError
    If you try to remove a default built-in colormap.
zcannot unregister z which is a builtin colormap.N)r1   rU   r/   Úpop)r2   r   s     r'   Ú
unregisterÚColormapRegistry.unregisterª   s@   € ð6 ×&Ñ&Ó&ÜÐ1°$±ð :)ð )ó *ð *à�‰�‰˜˜dÕ#r)   c           	      ó(  • Uc  U [         R                  S      $ [        U[        R                  5      (       a  U$ [        U[
        5      (       a&  [        R                  " [        [        5      US9  X   $ [        SSU< S[        U5       3-   5      e)a(  
Return a color map specified through *cmap*.

Parameters
----------
cmap : str or `~matplotlib.colors.Colormap` or None

    - if a `.Colormap`, return it
    - if a string, look it up in ``mpl.colormaps``
    - if None, return the Colormap defined in :rc:`image.cmap`

Returns
-------
Colormap
ú
image.cmaprR   z<get_cmap expects None or an instance of a str or Colormap . zyou passed z	 of type )ÚmplÚrcParamsÚ
isinstancer   rT   Ústrr   Úcheck_in_listÚsortedÚ
_colormapsÚ	TypeErrorÚtype)r2   r%   s     r'   Úget_cmapÚColormapRegistry.get_cmapÊ   sˆ   € ð" ‰<ØœŸ™ \Ñ2Ñ3Ð3ô �dœFŸO™O×,Ñ,ØˆKÜ�dœC× Ñ Ü×Òœv¤jÓ1¸Ò=à‘:ÐÜØJØ˜$™ ¬4°«:¨,Ð7ñ8ó
ð 	
r)   )r1   r/   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r3   r8   r=   rA   rK   rN   rW   r[   rh   Ú__static_attributes__rF   r)   r'   r+   r+   B   s>   † ñò.+òOò!ò ò9òð &*°õ 0*òd$õ@
r)   r+   z3.7z3.11z^``matplotlib.colormaps[name]`` or ``matplotlib.colormaps.get_cmap()`` or ``pyplot.get_cmap()``)ÚremovalÚalternativec                 óü   • U c  [         R                  S   n [        U [        R                  5      (       a  U $ [
        R                  " [        [        5      U S9  Uc	  [        U    $ [        U    R                  U5      $ )a0  
Get a colormap instance, defaulting to rc values if *name* is None.

Parameters
----------
name : `~matplotlib.colors.Colormap` or str or None, default: None
    If a `.Colormap` instance, it will be returned. Otherwise, the name of
    a colormap known to Matplotlib, which will be resampled by *lut*. The
    default, None, means :rc:`image.cmap`.
lut : int or None, default: None
    If *name* is not already a Colormap instance and *lut* is not None, the
    colormap will be resampled to have *lut* entries in the lookup table.

Returns
-------
Colormap
r^   )r   )
r_   r`   ra   r   rT   r   rc   rd   re   Ú	resampled)r   Úluts     r'   rh   rh   ù   sh   € ð0 �|Ü�|‰|˜LÑ)ˆÜ�$œŸ™×(Ñ(ØˆÜ×Ò”vœjÓ)°Ò5Ø
�{Ü˜$ÑÐä˜$Ñ×)Ñ)¨#Ó.Ð.r)   c                 óò   • [        U [        R                  5      (       a  U $ U b  U O[        R                  S   nU[
        ;  a"  [        R                  " [        [
        5      US9  [        R                  U   $ )a?  
Ensure that we have a `.Colormap` object.

For internal use to preserve type stability of errors.

Parameters
----------
cmap : None, str, Colormap

    - if a `Colormap`, return it
    - if a string, look it up in mpl.colormaps
    - if None, look up the default color map in mpl.colormaps

Returns
-------
Colormap

r^   rR   )
ra   r   rT   r_   r`   re   r   rc   rd   Ú	colormaps)r%   Ú	cmap_names     r'   Ú_ensure_cmaprx     s]   € ô& �$œŸ™×(Ñ(ØˆØÑ(‘¬c¯l©l¸<Ñ.H€Ið œ
Ó"Ü×Òœ6¤*Ó-°IÒ>Ü�=‰=˜Ñ#Ð#r)   )NN) rn   Úcollections.abcr   Ú
matplotlibr_   r   r   Úmatplotlib.colorizerr   ÚScalarMappableÚmatplotlib._cmr   Úmatplotlib._cm_listedr   r   Úmatplotlib._cm_multivarr	   Úmultivar_cmapsÚmatplotlib._cm_bivarÚbivar_cmapsr`   r   r(   r+   re   ÚglobalsÚupdateÚ_multivar_colormapsÚ_bivar_colormapsÚ
deprecatedrh   rx   rF   r)   r'   Ú<module>rˆ      s¬   ðñõ  $ã ß #å BÝ  Ý 7Ý CÝ 5ð �<‰<˜Ñ$€òôDf
�wô f
ñX Ñ0Ó2Ó3€
Ù ƒ	× Ñ �Ô á& ~Ó6Ð á# KÓ0Ð ð ‡‚Ø	Øð,ñó/óð/ó:$r)   