| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/pandas/plotting/_matplotlib/__pycache__/ |
Upload File : |
�
. �g� � �L � d dl mZ d dlmZmZ d dlZd dlmZmZ d dl Z d dl
Zd dlZ
d dl
Zd dlmZ d dlmZ d dlmZ d dlmc mZ erd dlmZ d dd �Z dd
�Zdd�Z dd�Zdd
�Z dd�Z dd�Z!dd�Z"dd�Z#d d�Z$d!d�Z%d!d�Z&d"d�Z'd#d�Z(y)$� )�annotations)�
Collection�IteratorN)�
TYPE_CHECKING�cast)�MatplotlibColor)�find_stack_level)�is_list_like)�Colormapc �p � t |t � r|S t |||| �� }t t || �� � S )a�
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.
��color�colormap�
color_type�
num_colors�r )�
isinstance�dict�_derive_colors�list�
_cycle_colors)r r r r �colorss �CC:\Python312\Lib\site-packages\pandas/plotting/_matplotlib/style.py�get_standard_colorsr s>