
    Bhl                     F   S SK r S SKJr  S SKrS SKrSSKJr  SSK	J
r
Jr  SSKJrJr  SSKJr  / SQr\" / S	Q/ S
Q/ SQ/ SQ/ SQ/ SQ/ SQ/ SQ/ SQ/ SQ/ SQ/ SQS9rSSSSSSSSSSSSS.r\R+                  5       r\R/                  \R1                  5        V Vs0 s H  u  pU \" U5      _M     snn 5        \" \R7                  5       5      r " S S\5      rS rS-S jrS.S  jr S/S! jr!S0S" jr"S# r#S1S$ jr$S1S% jr%  S2S& jr&S3S' jr'S( r(S) r)  S4S* jr*S+ r+S5S, jr,gs  snn f )6    N)cycle   )husl)
desaturateget_color_cycle)xkcd_rgbcrayons)get_colormap)color_palettehls_palettehusl_palettempl_palettedark_palettelight_palettediverging_paletteblend_palettexkcd_palettecrayon_palettecubehelix_paletteset_color_codes)
#4C72B0z#DD8452#55A868#C44E52#8172B3z#937860z#DA8BC3z#8C8C8C#CCB974#64B5CD)r   r   r   r   r   r   )
#4878D0z#EE854A#6ACC64#D65F5F#956CB4z#8C613Cz#DC7EC0z#797979#D5BB67#82C6E2)r   r   r   r    r!   r"   )
#A1C9F4z#FFB482#8DE5A1#FF9F9B#D0BBFFz#DEBB9Bz#FAB0E4z#CFCFCF#FFFEA3#B9F2F0)r#   r$   r%   r&   r'   r(   )
#023EFFz#FF7C00#1AC938#E8000B#8B2BE2z#9F4800z#F14CC1z#A3A3A3#FFC400#00D7FF)r)   r*   r+   r,   r-   r.   )
#001C7Fz#B1400D#12711C#8C0800#591E71z#592F0Dz#A23582z#3C3C3C#B8850A#006374)r/   r0   r1   r2   r3   r4   )
#0173B2z#DE8F05#029E73#D55E00#CC78BCz#CA9161z#FBAFE4z#949494#ECE133#56B4E9)r5   r6   r7   r8   r9   r:   )deepdeep6mutedmuted6pastelpastel6brightbright6darkdark6
colorblindcolorblind6
      	         )tab10tab20tab20btab20cSet1Set2Set3AccentPairedPastel1Pastel2Dark2c                   0    \ rS rSrSrS rS rS rS rSr	g)	_ColorPalette=   z?Set the color palette in a with statement, otherwise be a list.c                 @    SSK Jn  [        5       U l        U" U 5        U $ )zOpen the context.r   set_palette)rcmodr]   r   _orig_palette)selfr]   s     cC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\seaborn/palettes.py	__enter___ColorPalette.__enter__?   s    &*_D    c                 4    SSK Jn  U" U R                  5        g)zClose the context.r   r\   N)r^   r]   r_   )r`   argsr]   s      ra   __exit___ColorPalette.__exit__F   s    &D&&'rd   c                     U  Vs/ s H"  n[         R                  R                  U5      PM$     nn[        U5      $ s  snf )z<Return a color palette with hex codes instead of RGB values.)mplcolorsrgb2hexrY   )r`   rgbhexs      ra   as_hex_ColorPalette.as_hexK   s5    267$3szz!!#&$7S!! 8s   );c                     Sn[        U 5      nSX!-   SU S3n[        U R                  5       5       H  u  pEUSXA-   SU SU SU S3	-  nM     US	-  nU$ )
z6Rich display of the color palette in an HTML frontend.7   z<svg  width="z
" height="">z	<rect x="z" y="0" width="z" style="fill:z*;stroke-width:2;stroke:rgb(255,255,255)"/>z</svg>)len	enumeratero   )r`   snhtmlics         ra   _repr_html__ColorPalette._repr_html_P   s    IqugZs"5dkkm,DAAE7/!JqcPQs S< <D -
 	rd   )r_   N)
__name__
__module____qualname____firstlineno____doc__rb   rg   ro   r{   __static_attributes__ rd   ra   rY   rY   =   s    I(
"
rd   rY   c                      S n S nU [         R                  R                  l        U[         R                  R                  l        g)zASimplify the rich display of matplotlib color maps in a notebook.c                    SSK nSSKJn  SSKnSnUR                  " UR
                  " SSUS   5      US   S45      nU " USS9nUR                  5       nUR                  U5      R                  USS	9  UR                  5       $ )
z.Generate a PNG representation of the Colormap.r   N)Image)i  2   r   T)bytespng)format)
ioPILr   numpytilelinspaceBytesIO	fromarraysavegetvalue)r`   r   r   np
IMAGE_SIZEXpixels	png_bytess           ra   
_repr_png_+_patch_colormap_display.<locals>._repr_png_`   s|    
GGBKK1jm4z!}a6HIat$JJL	$$Yu$=!!##rd   c                     SSK nU R                  5       nUR                  U5      R                  S5      nSU R                  -   S-   S-   U R                  -   S-   S-   U-   S	-   $ )
z0Generate an HTML representation of the Colormap.r   Nasciiz
<img alt="z color map" ztitle=""zsrc="data:image/png;base64,rs   )base64r   	b64encodedecodename)r`   r   r   
png_base64s       ra   r{   ,_patch_colormap_display.<locals>._repr_html_l   s    OO%	%%i077@
 II&(67"ii(*-. 00 3== @DD 	Erd   N)rj   rk   Colormapr   r{   )r   r{   s     ra   _patch_colormap_displayr   ^   s3    
$E &0CJJ"&1CJJ#rd   c                 p   U c  [        5       n Uc  [        U 5      nGO[        U [        5      (       d  U n Uc  [        U 5      nGOUc  [        R                  U S5      nU [        ;   a  [        U    n GOjU S:X  a  [        XS9n GOYU S:X  a  [        XS9n GOHU R                  5       S:X  a  [        S5      eU R                  S5      (       a!  [        U 5      u  pE[        U/UQ70 UDS	U0D6n OU R                  S
5      (       a;  U R                  S5      u  pgUR                  S5      nU(       a  USS n[!        XqXS9n OU R                  S5      (       a;  U R                  S5      u  pgUR                  S5      nU(       a  USS n[#        XqXS9n OPU R                  S5      (       a/  U R                  S5      u  piU	R                  S5      n	[%        XUS9n O ['        XUS9n Ub  U  V
s/ s H  n
[+        X5      PM     n n
U(       dk  [-        U 5      n[/        U5       Vs/ s H  n[1        U5      PM     n n [3        [4        R6                  R8                  R:                  U 5      n [=        U 5      n U $ U $ ! [        [(        4 a    [        U < S35      ef = fs  sn
f s  snf ! [         a    [        SU  35      ef = f)a  Return a list of colors or continuous colormap defining a palette.

Possible ``palette`` values include:
    - Name of a seaborn palette (deep, muted, bright, pastel, dark, colorblind)
    - Name of matplotlib colormap
    - 'husl' or 'hls'
    - 'ch:<cubehelix arguments>'
    - 'light:<color>', 'dark:<color>', 'blend:<color>,<color>',
    - A sequence of colors in any format matplotlib accepts

Calling this function with ``palette=None`` will return the current
matplotlib color cycle.

This function can also be used in a ``with`` statement to temporarily
set the color cycle for a plot or set of plots.

See the :ref:`tutorial <palette_tutorial>` for more information.

Parameters
----------
palette : None, string, or sequence, optional
    Name of palette or None to return current palette. If a sequence, input
    colors are used but possibly cycled and desaturated.
n_colors : int, optional
    Number of colors in the palette. If ``None``, the default will depend
    on how ``palette`` is specified. Named palettes default to 6 colors,
    but grabbing the current palette or passing in a list of colors will
    not change the number of colors unless this is specified. Asking for
    more colors than exist in the palette will cause it to cycle. Ignored
    when ``as_cmap`` is True.
desat : float, optional
    Proportion to desaturate each color by.
as_cmap : bool
    If True, return a :class:`matplotlib.colors.ListedColormap`.

Returns
-------
list of RGB tuples or :class:`matplotlib.colors.ListedColormap`

See Also
--------
set_palette : Set the default color cycle for all plots.
set_color_codes : Reassign color codes like ``"b"``, ``"g"``, etc. to
                  colors from one of the seaborn palettes.

Examples
--------

.. include:: ../docstrings/color_palette.rst

N   hlsas_cmapr   jetzNo.ch:r   zlight::_r)reverser   zdark:zblend:,z is not a valid palette namez!Could not generate a palette for )r   rt   
isinstancestrQUAL_PALETTE_SIZESgetSEABORN_PALETTESr   r   lower
ValueError
startswith_parse_cubehelix_argsr   splitendswithr   r   r   r   KeyErrorr   r   rangenextmaprj   rk   colorConverterto_rgbrY   )paletten_colorsdesatr   rf   kwargs_colorr   rk   rz   	pal_cycles               ra   r   r   z   s   h !#7|H%%7|H )--gq9H&&&w/G!(<G"8=G]]_%U##&&09LD'S4S6S7SG))}}S)HAnnT*Gcr
#EWVG((}}S)HAnnT*Gcr
"5GUG))c*IA\\#&F#FgFGM%gI 189A:a'9 'N	,1(O<Oq4	?O<	L#**33::GDG#G,G N7N' ) M G;.J!KLLM : =  	L@	JKK	Ls$   
I/ $JJ29J / JJ5c                 ^   U(       a  Sn [         R                  " SS[        U 5      S-   5      SS nXQ-  nUS-  nXUR                  [        5      -  nU Vs/ s H  n[        R
                  " XbU5      PM     nnU(       a   [        R                  R                  US5      $ [        U5      $ s  snf )a  
Return hues with constant lightness and saturation in the HLS system.

The hues are evenly sampled along a circular path. The resulting palette will be
appropriate for categorical or cyclical data.

The `h`, `l`, and `s` values should be between 0 and 1.

.. note::
    While the separation of the resulting colors will be mathematically
    constant, the HLS system does not construct a perceptually-uniform space,
    so their apparent intensity will vary.

Parameters
----------
n_colors : int
    Number of colors in the palette.
h : float
    The value of the first hue.
l : float
    The lightness value.
s : float
    The saturation intensity.
as_cmap : bool
    If True, return a matplotlib colormap object.

Returns
-------
palette
    list of RGB tuples or :class:`matplotlib.colors.ListedColormap`

See Also
--------
husl_palette : Make a palette using evenly spaced hues in the HUSL system.

Examples
--------
.. include:: ../docstrings/hls_palette.rst

   r   r   Nr   )
r   r   intastypecolorsys
hls_to_rgbrj   rk   ListedColormaprY   )r   hlrv   r   huesh_ir   s           ra   r   r     s    R ;;q!S]Q./4DIDAIDKKD9=>#x""31-G>zz((%88W%%	 ?s   !B*c                 8   U(       a  Sn [         R                  " SS[        U 5      S-   5      SS nXQ-  nUS-  nUS-  nUS-  nUS-  nU Vs/ s H  n[        XbU4SS	9PM     nnU(       a   [        R
                  R                  US
5      $ [        U5      $ s  snf )at  
Return hues with constant lightness and saturation in the HUSL system.

The hues are evenly sampled along a circular path. The resulting palette will be
appropriate for categorical or cyclical data.

The `h`, `l`, and `s` values should be between 0 and 1.

This function is similar to :func:`hls_palette`, but it uses a nonlinear color
space that is more perceptually uniform.

Parameters
----------
n_colors : int
    Number of colors in the palette.
h : float
    The value of the first hue.
l : float
    The lightness value.
s : float
    The saturation intensity.
as_cmap : bool
    If True, return a matplotlib colormap object.

Returns
-------
palette
    list of RGB tuples or :class:`matplotlib.colors.ListedColormap`

See Also
--------
hls_palette : Make a palette using evenly spaced hues in the HSL system.

Examples
--------
.. include:: ../docstrings/husl_palette.rst

r   r   r   Nr   ig  c   r   inputhsl)r   r   r   _color_to_rgbrj   rk   r   rY   )r   r   rv   r   r   r   r   r   s           ra   r   r   8  s    N ;;q!S]Q./4DIDAIDCKDGAGACGH4C}ca[74GHzz((%88W%%	 Is   Bc           	         U R                  S5      (       aO  U SS nUR                  S5      (       a  SnUSS nOSn[        US5      S/-   nU(       a  USSS	2   n[        XQSS
9nO[        U 5      nU [        ;   a#  [
        R                  " SS[        U    5      SU nO'[
        R                  " SS[        U5      S-   5      SS	 n[        [        [        U" U5      SS2SS24   5      5      nU(       a  U$ [        U5      $ )a  
Return a palette or colormap from the matplotlib registry.

For continuous palettes, evenly-spaced discrete samples are chosen while
excluding the minimum and maximum value in the colormap to provide better
contrast at the extremes.

For qualitative palettes (e.g. those from colorbrewer), exact values are
indexed (rather than interpolated), but fewer than `n_colors` can be returned
if the palette does not define that many.

Parameters
----------
name : string
    Name of the palette. This should be a named matplotlib colormap.
n_colors : int
    Number of discrete colors in the palette.

Returns
-------
list of RGB tuples or :class:`matplotlib.colors.ListedColormap`

Examples
--------
.. include:: ../docstrings/mpl_palette.rst

_dNr   r   TF   z#333333r   r   r   r      )r   r   r   r
   MPL_QUAL_PALSr   r   r   listr   tuplerY   )	r   r   r   sub_namer   palcmapbinsr   s	            ra   r   r   n  s    8 }}T9T""G}HGHa(I;6dd)CSD9D!}{{1at!45ix@{{1aX!23Ab93ud4jBQB/01GW%%rd   c                    US:X  a  [         R                  " U 6 n OJUS:X  a5  [        R                  " U 6 n [	        [
        R                  " U SS5      5      n OUS:X  a	  [        U    n [        R                  R                  U 5      $ )z+Add some more flexibility to color choices.r   r   r   r   xkcd)r   r   r   husl_to_rgbr   r   clipr   rj   rk   r   )r   r   s     ra   r   r     sl    ~##U+	&  %(bggeQ*+	&::U##rd   c                     [        X5      n[        R                  " U6 u  pgnSU-  Sp[        XiU
4SS9nU(       a  X[/OX/n[        XU5      $ )af  Make a sequential palette that blends from dark to ``color``.

This kind of palette is good for data that range between relatively
uninteresting low values and interesting high values.

The ``color`` parameter can be specified in a number of ways, including
all options for defining a color in matplotlib and several additional
color spaces that are handled by seaborn. You can also use the database
of named colors from the XKCD color survey.

If you are using the IPython notebook, you can also choose this palette
interactively with the :func:`choose_dark_palette` function.

Parameters
----------
color : base color for high values
    hex, rgb-tuple, or html color name
n_colors : int, optional
    number of colors in the palette
reverse : bool, optional
    if True, reverse the direction of the blend
as_cmap : bool, optional
    If True, return a :class:`matplotlib.colors.ListedColormap`.
input : {'rgb', 'hls', 'husl', xkcd'}
    Color space to interpret the input color. The first three options
    apply to tuple inputs and the latter applies to string inputs.

Returns
-------
palette
    list of RGB tuples or :class:`matplotlib.colors.ListedColormap`

See Also
--------
light_palette : Create a sequential palette with bright low values.
diverging_palette : Create a diverging palette with two colors.

Examples
--------
.. include:: ../docstrings/dark_palette.rst

333333?   r   r   r   r   rgb_to_huslr   r   r   r   r   r   rm   huesatr   gray_sgray_lgrayrk   s                ra   r   r     sY    V 
%C""C(KCa3YF#v.f=D#c[$F733rd   c                     [        X5      n[        R                  " U6 u  pgnSU-  Sp[        XiU
4SS9nU(       a  X[/OX/n[        XU5      $ )a  Make a sequential palette that blends from light to ``color``.

The ``color`` parameter can be specified in a number of ways, including
all options for defining a color in matplotlib and several additional
color spaces that are handled by seaborn. You can also use the database
of named colors from the XKCD color survey.

If you are using a Jupyter notebook, you can also choose this palette
interactively with the :func:`choose_light_palette` function.

Parameters
----------
color : base color for high values
    hex code, html color name, or tuple in `input` space.
n_colors : int, optional
    number of colors in the palette
reverse : bool, optional
    if True, reverse the direction of the blend
as_cmap : bool, optional
    If True, return a :class:`matplotlib.colors.ListedColormap`.
input : {'rgb', 'hls', 'husl', xkcd'}
    Color space to interpret the input color. The first three options
    apply to tuple inputs and the latter applies to string inputs.

Returns
-------
palette
    list of RGB tuples or :class:`matplotlib.colors.ListedColormap`

See Also
--------
dark_palette : Create a sequential palette with dark low values.
diverging_palette : Create a diverging palette with two colors.

Examples
--------
.. include:: ../docstrings/light_palette.rst

r   _   r   r   r   r   s                ra   r   r     sY    P 
%C""C(KCa3YF#v.f=D#c[$F733rd   c                     [        [        [        S9U   n[        SUS-  -
  5      n	U" XU4U	SSS9n
U" XU4U	SS9n[        S/S	/S
9U   nX-  n[	        [
        R                  " XU/5      XWS9nU$ )aG  Make a diverging palette between two HUSL colors.

If you are using the IPython notebook, you can also choose this palette
interactively with the :func:`choose_diverging_palette` function.

Parameters
----------
h_neg, h_pos : float in [0, 359]
    Anchor hues for negative and positive extents of the map.
s : float in [0, 100], optional
    Anchor saturation for both extents of the map.
l : float in [0, 100], optional
    Anchor lightness for both extents of the map.
sep : int, optional
    Size of the intermediate region.
n : int, optional
    Number of colors in the palette (if not returning a cmap)
center : {"light", "dark"}, optional
    Whether the center of the palette is light or dark
as_cmap : bool, optional
    If True, return a :class:`matplotlib.colors.ListedColormap`.

Returns
-------
palette
    list of RGB tuples or :class:`matplotlib.colors.ListedColormap`

See Also
--------
dark_palette : Create a sequential palette with dark values.
light_palette : Create a sequential palette with light values.

Examples
--------
.. include: ../docstrings/diverging_palette.rst

)rC   light   r   Tr   )r   r   r   )ffffff?r   r   )/$?r   r   )r   rC   r   )dictr   r   r   r   r   concatenate)h_negh_posrv   r   seprw   centerr   palfuncn_halfnegposmidpointmidr   s                  ra   r   r     s    N M:6BGq!"F
5Q-V
DC
5Q-v
6C?+3E2FGOH
.C
#7
LCJrd   c           	      <   U  Vs/ s H  n[        XC5      PM     n nSn[        R                  R                  R	                  XP5      nU(       dI  U" [
        R                  " SS[        U5      5      5      SS2SS24   n[        [        [        U5      5      nU$ s  snf )a  Make a palette that blends between a list of colors.

Parameters
----------
colors : sequence of colors in various formats interpreted by `input`
    hex code, html color name, or tuple in `input` space.
n_colors : int, optional
    Number of colors in the palette.
as_cmap : bool, optional
    If True, return a :class:`matplotlib.colors.ListedColormap`.

Returns
-------
palette
    list of RGB tuples or :class:`matplotlib.colors.ListedColormap`

Examples
--------
.. include: ../docstrings/blend_palette.rst

blendr   r   Nr   )r   rj   rk   LinearSegmentedColormap	from_listr   r   r   rY   r   r   )rk   r   r   r   r   r   r   	rgb_arrays           ra   r   r   E  s    , 8>>vemE)vF>D
**
,
,
6
6t
DCAq#h-89!RaR%@	Cy12J ?s   Bc                 h    U  Vs/ s H  n[         U   PM     nn[        U[        U5      5      $ s  snf )a  Make a palette with color names from the xkcd color survey.

See xkcd for the full list of colors: https://xkcd.com/color/rgb/

This is just a simple wrapper around the `seaborn.xkcd_rgb` dictionary.

Parameters
----------
colors : list of strings
    List of keys in the `seaborn.xkcd_rgb` dictionary.

Returns
-------
palette
    A list of colors as RGB tuples.

See Also
--------
crayon_palette : Make a palette with Crayola crayon colors.

)r   r   rt   rk   r   r   s      ra   r   r   d  s2    , +11&$x~&G1#g,// 2   /c                 h    U  Vs/ s H  n[         U   PM     nn[        U[        U5      5      $ s  snf )a  Make a palette with color names from Crayola crayons.

Colors are taken from here:
https://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors

This is just a simple wrapper around the `seaborn.crayons` dictionary.

Parameters
----------
colors : list of strings
    List of keys in the `seaborn.crayons` dictionary.

Returns
-------
palette
    A list of colors as RGB tuples.

See Also
--------
xkcd_palette : Make a palette with named colors from the XKCD color survey.

)r	   r   rt   r  s      ra   r   r   ~  s2    . *00wt}G0#g,// 1r  c	                   ^^^^ UUUU4S jn	U	" SS5      U	" SS5      U	" SS5      S.n
[         R                  R                  S	U
5      n[        R                  " XV[        U 5      5      nU" U5      S
S
2S
S24   R                  5       nU(       a  US
S
S2   nU(       aP  [        R                  " XVS5      nU(       a  US
S
S2   nU" U5      n[         R                  R                  US5      nU$ [        U5      $ )a  Make a sequential palette from the cubehelix system.

This produces a colormap with linearly-decreasing (or increasing)
brightness. That means that information will be preserved if printed to
black and white or viewed by someone who is colorblind.  "cubehelix" is
also available as a matplotlib-based palette, but this function gives the
user more control over the look of the palette and has a different set of
defaults.

In addition to using this function, it is also possible to generate a
cubehelix palette generally in seaborn using a string starting with
`ch:` and containing other parameters (e.g. `"ch:s=.25,r=-.5"`).

Parameters
----------
n_colors : int
    Number of colors in the palette.
start : float, 0 <= start <= 3
    The hue value at the start of the helix.
rot : float
    Rotations around the hue wheel over the range of the palette.
gamma : float 0 <= gamma
    Nonlinearity to emphasize dark (gamma < 1) or light (gamma > 1) colors.
hue : float, 0 <= hue <= 1
    Saturation of the colors.
dark : float 0 <= dark <= 1
    Intensity of the darkest color in the palette.
light : float 0 <= light <= 1
    Intensity of the lightest color in the palette.
reverse : bool
    If True, the palette will go from dark to light.
as_cmap : bool
    If True, return a :class:`matplotlib.colors.ListedColormap`.

Returns
-------
palette
    list of RGB tuples or :class:`matplotlib.colors.ListedColormap`

See Also
--------
choose_cubehelix_palette : Launch an interactive widget to select cubehelix
                           palette parameters.
dark_palette : Create a sequential palette with dark low values.
light_palette : Create a sequential palette with bright low values.

References
----------
Green, D. A. (2011). "A colour scheme for the display of astronomical
intensity images". Bulletin of the Astromical Society of India, Vol. 39,
p. 289-295.

Examples
--------
.. include:: ../docstrings/cubehelix_palette.rst

c                 "   >^ ^ UUU UUU4S jnU$ )Nc                    > U T-  nTU-  SU-
  -  S-  nS[         R                  -  T	S-  TU -  -   -  nXT[         R                  " U5      -  T[         R                  " U5      -  -   -  -   $ )Nr   r   r   )r   picossin)
xxgaphigammar   p0p1rotstarts
       ra   r   <cubehelix_palette.<locals>.get_color_function.<locals>.color  sq    eB
 bAF#a'Abee)uqy3723CR"&&+-RVVC[0@@AAArd   r   )r  r  r   r  r   r  r   s   `` ra   get_color_function-cubehelix_palette.<locals>.get_color_function  s    	B 	B rd   gKÿg9?gۅ:ҿgRQg)?        )redgreenblue	cubehelixNr   r   r   seaborn_cubehelix)	rj   rk   r  r   r   r   tolistr   rY   )r   r   r  r  r   r   rC   r   r   r"  cdictr   r  r   x_256pal_256s    ````           ra   r   r     s    v " "(G4#Hh7"7C0E ::--k5AD
EX/A
q'!RaR%.


!C$B$iE-$B$KEu+zz((2EFS!!rd   c           
         U R                  S5      (       a  U SS n U R                  S5      (       a  SnU SS n OSnU (       d  / SU04$ U R                  S	5      nU Vs/ s H%  nS
U;  d  M  [        UR	                  S5      5      PM'     nnU Vs/ s H  nS
U;   d  M  UR                  S
5      PM     nnU VVs0 s H/  u  pgUR	                  S5      [        UR	                  S5      5      _M1     nnn[        SSSSSSS9nUR                  5        VVs0 s H  u  pgUR                  Xf5      U_M     nnnU(       a  SUS'   XE4$ s  snf s  snf s  snnf s  snnf )z3Turn stringified cubehelix params into args/kwargs.r   r   Nr   Tr   Fr   r   = r   r  r  r   r   rC   )rv   rgr   r   d)r   r   r   floatstripr   itemsr   )	argstrr   all_argsr  rf   r   kv	kwarg_maps	            ra   r   r     sN    tIw'''||C H)1BAS\E!''#,DB$,9HqqlaggclHF9<BCFDAaggclE!''#,//FFC
Ug
7fI
 28@immA!1$F@ y< C9C As$   
E,E
E	E	:6EEc                    U S:X  a  / SQnOf[        U [        5      (       d  Sn[        U5      eU [        ;   a)  U R	                  S5      (       d  U S-   n [        U    S/-   nOSU  S3n[        U5      e[        SU5       HU  u  p4[        R                  R                  R                  U5      nU[        R                  R                  R                  U'   MW     g	)
a  Change how matplotlib color shorthands are interpreted.

Calling this will change how shorthand codes like "b" or "g"
are interpreted by matplotlib in subsequent plots.

Parameters
----------
palette : {deep, muted, pastel, dark, bright, colorblind}
    Named seaborn palette to use as the source of colors.

See Also
--------
set : Color codes can be set through the high-level seaborn style
      manager.
set_palette : Color codes can also be set through the function that
              sets the matplotlib color cycle.

reset))r$  r$        ?)r$  g      ?r$  )r>  r$  r$  )      ?r$  r?  )r?  r?  r$  )r$  r?  r?  )r$  r$  r$  z0set_color_codes requires a named seaborn palette6)皙?rA  rA  z Cannot set colors with palette ''bgrmyckN)r   r   	TypeErrorr   r   r   ziprj   rk   r   r   )r   rk   errcoder   rm   s         ra   r   r     s    & '
 %%@n	$	$$$mG!'*l^;0	;o9f-jj''..u514

!!((. .rd   )NNNF)r   {Gz?g333333??F)r   rH  g?rI  F)r   F)r   FFrm   )K   r   r   r   r   F)r   Frm   )	r   r   g?r>  g?g333333?r   FF)r;   )-r   	itertoolsr   r   r   
matplotlibrj   externalr   utilsr   r   rk   r   r	   _compatr
   __all__r   r   r   copyr   updater6  rt   r   keysQUAL_PALETTESrY   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r9  r:  s   00ra   <module>rU     sl        . % !3 
A,B-C.C.
A,G2/ : "bq"2Q	 #'')    1A1G1G1IJ1I1c!f91IJ K',,./D B28EP3&l3&l3&l
$04f-4` :;.3.b>0406 CFBG`"F F*5M Ks   D
