+
    ŜiM!                       ^ RI Ht ^ RIHtHtHt ^ RIt^ RIHtH	t	H
t
 ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt ]'       d   ^ RIHt ]
R'R
 R ll4       t]
R'RR	/R R lll4       t]
R'RR	/R R lll4       tR(RR/R R llltR R ltR R ltR R ltR R ltR R ltR R ltR R  lt R! R" lt!R# R$ lt"R% R& lt#R# ))    )annotations)
CollectionIteratorSequenceN)TYPE_CHECKINGcastoverload)MatplotlibColor)find_stack_level)is_list_like)Colormap.c          
     ,    V ^8  d   QhRRRRRRRRR	R/# )
   
num_colorsintcolormapColormap | None
color_typestrcolorzdict[str, Color]return )formats   "j/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/pandas/plotting/_matplotlib/style.py__annotate__r      s:       
      c                   R # Nr   r   r   r   r   s   &&&$r   get_standard_colorsr       s     r   r   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r   r   r   r   r   r   r   r   zColor | Sequence[Color] | Noner   list[Color]r   )r   s   "r   r   r   (   s:       
 * r   c                   R # r   r   r   s   &&&$r   r    r    '   s     r   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# r   r   r   r   r   r   r   r   z1dict[str, Color] | Color | Sequence[Color] | Noner   zdict[str, Color] | list[Color]r   )r   s   "r   r   r   2   s:     ) ))) )
 =) $)r   c                   R # r   r   r   s   &&&$r   r    r    1   s     &)r   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# r%   r   )r   s   "r   r   r   ;   s:     1> 1>1>1> 1>
 =1> $1>r   c               z    \        V\        4      '       d   V# \        VVVV R7      p\        \	        W@R7      4      # )a7  
Get standard colors based on `colormap`, `color_type` or `color` inputs.

Parameters
----------
num_colors : int
    Minimum number of colors to be returned.
    Ignored if `color` is a dictionary.
colormap : :py:class:`matplotlib.colors.Colormap`, optional
    Matplotlib colormap.
    When provided, the resulting colors will be derived from the colormap.
color_type : {"default", "random"}, optional
    Type of colors to derive. Used if provided `color` and `colormap` are None.
    Ignored if either `color` or `colormap` are not None.
color : dict or str or sequence, optional
    Color(s) to be used for deriving sequence of colors.
    Can be either be a dictionary, or a single color (single color string,
    or sequence of floats representing a single color),
    or a sequence of colors.

Returns
-------
dict or list
    Standard colors. Can either be a mapping if `color` was a dictionary,
    or a list of colors with a length of `num_colors` or more.

Warns
-----
UserWarning
    If both `colormap` and `color` are provided.
    Parameter `color` will override.
r   r   r   r   r   )
isinstancedict_derive_colorslist_cycle_colors)r   r   r   r   colorss   &&&$ r   r    r    ;   s?    N %	F f<==r   c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r   r   z Color | Collection[Color] | Noner   zstr | Colormap | Noner   r   r   r   r   r"   r   )r   s   "r   r   r   o   sC     1N 1N+1N $1N 	1N
 1N 1Nr   c                    V f   Ve   \        WR7      # V e0   Ve!   \        P                  ! R\        4       R7       \	        V 4      # \        W#R7      # )a  
Derive colors from either `colormap`, `color_type` or `color` inputs.

Get a list of colors either from `colormap`, or from `color`,
or from `color_type` (if both `colormap` and `color` are None).

Parameters
----------
color : str or sequence, optional
    Color(s) to be used for deriving sequence of colors.
    Can be either be a single color (single color string, or sequence of floats
    representing a single color), or a sequence of colors.
colormap : :py:class:`matplotlib.colors.Colormap`, optional
    Matplotlib colormap.
    When provided, the resulting colors will be derived from the colormap.
color_type : {"default", "random"}, optional
    Type of colors to derive. Used if provided `color` and `colormap` are None.
    Ignored if either `color` or `colormap`` are not None.
num_colors : int
    Number of colors to be extracted.

Returns
-------
list
    List of colors extracted.

Warns
-----
UserWarning
    If both `colormap` and `color` are provided.
    Parameter `color` will override.
r*   zC'color' and 'colormap' cannot be used simultaneously. Using 'color')
stacklevel)_get_colors_from_colormapwarningswarnr   _get_colors_from_color_get_colors_from_color_typer)   s   $$$$r   r-   r-   o   sS    N }-(II		MMU+- &e,,*:MMr   c               $    V ^8  d   QhRRRRRR/# )r   r0   r"   r   r   r   Iterator[Color]r   )r   s   "r   r   r      s&     E E+ E3 E? Er   c              #     "   \        V\        V 4      4      p\        P                  ! \        P                  ! V 4      V4       Rj  xL
  R#  L5i)zCycle colors until achieving max of `num_colors` or length of `colors`.

Extra colors will be ignored by matplotlib if there are more colors
than needed and nothing needs to be done here.
N)maxlen	itertoolsislicecycle)r0   r   
max_colorss   && r   r/   r/      s6      ZV-J	 7DDDs   AAAAc               $    V ^8  d   QhRRRRRR/# )r   r   str | Colormapr   r   r   r"   r   )r   s   "r   r   r      s+     D DDD Dr   c                ~    \        V 4      p\        P                  ! ^ ^VR7       Uu. uF
  q2! V4      NK  	  up# u upi )zGet colors from colormap.)num)_get_cmap_instancenplinspace)r   r   cmaprE   s   &&  r   r4   r4      s9    
 h'D!#Qz!BC!B#DI!BCCCs   :c                    V ^8  d   QhRRRR/# )r   r   rC   r   r   r   )r   s   "r   r   r      s       H r   c                    \        V \        4      '       d-   T p\        P                  V ,          p V f   \	        RV R24      hV # )z$Get instance of matplotlib colormap.z	Colormap z is not recognized)r+   r   mpl	colormaps
ValueError)r   rI   s   & r   rF   rF      sB    (C  ==*y.@ABBOr   c                    V ^8  d   QhRRRR/# )r   r   Color | Collection[Color]r   r"   r   )r   s   "r   r   r      s     : :$::r   c                    \        V 4      ^ 8X  d   \        RV  24      h\        V 4      '       d   \        \        V 4      p V .# \        \
        \        ,          V 4      p \        \        V 4      4      # )z!Get colors from user input color.zInvalid color argument: )r=   rN   _is_single_colorr   Colorr   r.   !_gen_list_of_colors_from_iterabler   s   &r   r7   r7      sb     5zQ3E7;<<UE"wE"E*E1%899r   c                    V ^8  d   QhRRRR/# r   r   rP   r   boolr   )r   s   "r   r   r      s      5 $ r   c                ~    \        V \        4      '       d   \        V 4      '       d   R# \        V 4      '       d   R# R# )a  Check if `color` is a single color, not a sequence of colors.

Single color is of these kinds:
    - Named color "red", "C0", "firebrick"
    - Alias "g"
    - Sequence of floats, such as (0.1, 0.2, 0.3) or (0.1, 0.2, 0.3, 0.4).

See Also
--------
_is_single_string_color
TF)r+   r   _is_single_string_color_is_floats_colorrU   s   &r   rR   rR      s0     %"9%"@"@r   c                    V ^8  d   QhRRRR/# )r   r   zCollection[Color]r   r:   r   )r   s   "r   r   r      s     3 3-> 3? 3r   c              #  f   "   V  F&  p\        V4      '       d   Vx  K  \        RV 24      h	  R# 5i)zK
Yield colors from string of several letters or from collection of colors.
zInvalid color N)rR   rN   )r   xs   & r   rT   rT      s3      AG~aS122	 s   /1c                    V ^8  d   QhRRRR/# rW   r   )r   s   "r   r   r      s      5 $ r   c                
   \        \        V 4      ;'       di    \        V 4      ^8H  ;'       g    \        V 4      ^8H  ;'       d=    \        ;QJ d$    R V  4       F  '       d   K   R4      # 	  R4      # ! R V  4       4      4      # )zACheck if color comprises a sequence of floats representing color.c              3  N   "   T F  p\        V\        \        34      x  K  	  R # 5ir   )r+   r   float).0r^   s   & r   	<genexpr>#_is_floats_color.<locals>.<genexpr>   s     ;U
1sEl++Us   #%FT)rX   r   r=   allrU   s   &r   r[   r[      s    U 	< 	<Z1_//E
a	< 	<C;U;CC    ;U;; r   c               $    V ^8  d   QhRRRRRR/# )r   r   r   r   r   r   r"   r   )r   s   "r   r   r      s&     L LC LS L[ Lr   c           	     j   V R8X  dY   \         P                  R,          p\        P                  ! V\	        V\        V4      4      4       Uu. uF  pVR,          NK  	  up# V R8X  d?   \        P                  P                  V4      P                  V^34      P                  4       # \        R4      hu upi )z&Get colors from user input color type.defaultzaxes.prop_cycler   randomz/color_type must be either 'default' or 'random')rL   rcParamsr>   r?   minr=   rG   rj   default_rngtolistrN   )r   r   
prop_cyclecs   &&  r   r8   r8      s    Y\\"34
 %%j#j#j/2RS
S gJJS
 	
 
x	yy$$Z077QHOOQQJKK
s   B0c                    V ^8  d   QhRRRR/# )r   r   rS   r   rX   r   )r   s   "r   r   r     s      5 T r   c                    \         P                  P                  4       p VP                  V 4       R#   \         d     R# i ; i)a?  Check if `color` is a single string color.

Examples of single string colors:
    - 'r'
    - 'g'
    - 'red'
    - 'green'
    - 'C3'
    - 'firebrick'

Parameters
----------
color : Color
    Color string or sequence of floats.

Returns
-------
bool
    True if `color` looks like a valid color.
    False otherwise.
TF)
matplotlibr0   ColorConverterto_rgbarN   )r   convs   & r   rZ   rZ     sD    , ++-D 	U   s   3 AA)..)Nri   )$
__future__r   collections.abcr   r   r   r>   typingr   r   r	   r5   rs   rL   matplotlib.colorsnumpyrG   pandas._typingr
   rS   pandas.util._exceptionsr   pandas.core.dtypes.commonr   r   r    r-   r/   r4   rF   r7   rR   rT   r[   r8   rZ   r   r   r   <module>r      s    " 
  
     3 4 2* 
 
 

 -0 
 
)
 @C) 
)1>
 @D1> 1>h1NhED:,3Lr   