@@ -12,14 +12,13 @@ from matplotlib.collections import (
1212 EventCollection ,
1313 QuadMesh ,
1414)
15- from matplotlib .colors import Color , Colormap , Normalize
15+ from matplotlib .colors import Colormap , Normalize
1616from matplotlib .container import BarContainer , ErrorbarContainer , StemContainer
1717from matplotlib .contour import ContourSet , QuadContourSet
1818from matplotlib .image import AxesImage , PcolorImage
1919from matplotlib .legend import Legend
2020from matplotlib .legend_handler import HandlerBase
21- from matplotlib .lines import Line2D , LineStyleType
22- from matplotlib .markers import MarkerType
21+ from matplotlib .lines import Line2D
2322from matplotlib .mlab import GaussianKDE
2423from matplotlib .patches import Rectangle , FancyArrow , Polygon , StepPatch
2524from matplotlib .quiver import Quiver , QuiverKey , Barbs
@@ -36,6 +35,7 @@ from collections.abc import Callable, Sequence
3635from typing import Any , Literal , overload
3736import numpy as np
3837from numpy .typing import ArrayLike
38+ from matplotlib .typing import ColorType , MarkerType , LineStyleType
3939
4040class Axes (_AxesBase ):
4141 def get_title (self , loc : Literal ["left" , "center" , "right" ] = ...) -> str : ...
@@ -77,8 +77,8 @@ class Axes(_AxesBase):
7777 inset_ax : Axes | None = ...,
7878 * ,
7979 transform : Transform | None = ...,
80- facecolor : Color = ...,
81- edgecolor : Color = ...,
80+ facecolor : ColorType = ...,
81+ edgecolor : ColorType = ...,
8282 alpha : float = ...,
8383 zorder : float = ...,
8484 ** kwargs
@@ -161,7 +161,7 @@ class Axes(_AxesBase):
161161 y : float | ArrayLike ,
162162 xmin : float | ArrayLike ,
163163 xmax : float | ArrayLike ,
164- colors : Sequence [Color ] | None = ...,
164+ colors : Sequence [ColorType ] | None = ...,
165165 linestyles : LineStyleType = ...,
166166 label : str = ...,
167167 ** kwargs
@@ -171,7 +171,7 @@ class Axes(_AxesBase):
171171 x : float | ArrayLike ,
172172 ymin : float | ArrayLike ,
173173 ymax : float | ArrayLike ,
174- colors : Sequence [Color ] | None = ...,
174+ colors : Sequence [ColorType ] | None = ...,
175175 linestyles : LineStyleType = ...,
176176 label : str = ...,
177177 ** kwargs
@@ -183,7 +183,7 @@ class Axes(_AxesBase):
183183 lineoffsets : float | Sequence [float ] = ...,
184184 linelengths : float | Sequence [float ] = ...,
185185 linewidths : float | Sequence [float ] | None = ...,
186- colors : Color | Sequence [Color ] | None = ...,
186+ colors : ColorType | Sequence [ColorType ] | None = ...,
187187 alpha : float | Sequence [float ] | None = ...,
188188 linestyles : LineStyleType | Sequence [LineStyleType ] = ...,
189189 ** kwargs
@@ -286,7 +286,7 @@ class Axes(_AxesBase):
286286 x : ArrayLike ,
287287 explode : ArrayLike | None = ...,
288288 labels : Sequence [str ] | None = ...,
289- colors : Sequence [Color ] | None = ...,
289+ colors : Sequence [ColorType ] | None = ...,
290290 autopct : str | Callable [[float ], str ] | None = ...,
291291 pctdistance : float = ...,
292292 shadow : bool = ...,
@@ -310,7 +310,7 @@ class Axes(_AxesBase):
310310 yerr : float | ArrayLike | None = ...,
311311 xerr : float | ArrayLike | None = ...,
312312 fmt : str = ...,
313- ecolor : Color | None = ...,
313+ ecolor : ColorType | None = ...,
314314 elinewidth : float | None = ...,
315315 capsize : float | None = ...,
316316 barsabove : bool = ...,
@@ -380,7 +380,7 @@ class Axes(_AxesBase):
380380 x : float | ArrayLike ,
381381 y : float | ArrayLike ,
382382 s : float | ArrayLike | None = ...,
383- c : Sequence [Color ] | Color | None = ...,
383+ c : Sequence [ColorType ] | ColorType | None = ...,
384384 marker : MarkerType | None = ...,
385385 cmap : str | Colormap | None = ...,
386386 norm : str | Normalize | None = ...,
@@ -389,7 +389,7 @@ class Axes(_AxesBase):
389389 alpha : float | None = ...,
390390 linewidths : float | Sequence [float ] | None = ...,
391391 * ,
392- edgecolors : Literal ["face" , "none" ] | Color | Sequence [Color ] | None = ...,
392+ edgecolors : Literal ["face" , "none" ] | ColorType | Sequence [ColorType ] | None = ...,
393393 plotnonfinite : bool = ...,
394394 ** kwargs
395395 ) -> PathCollection : ...
@@ -409,7 +409,7 @@ class Axes(_AxesBase):
409409 vmax : float | None = ...,
410410 alpha : float | None = ...,
411411 linewidths : float | None = ...,
412- edgecolors : Literal ["face" , "none" ] | Color = ...,
412+ edgecolors : Literal ["face" , "none" ] | ColorType = ...,
413413 reduce_C_function : Callable [[np .ndarray ], float ] = ...,
414414 mincnt : int | None = ...,
415415 marginals : bool = ...,
@@ -516,7 +516,7 @@ class Axes(_AxesBase):
516516 orientation : Literal ["vertical" , "horizontal" ] = ...,
517517 rwidth : float | None = ...,
518518 log : bool = ...,
519- color : Color | Sequence [Color ] | None = ...,
519+ color : ColorType | Sequence [ColorType ] | None = ...,
520520 label : str | Sequence [str ] | None = ...,
521521 stacked : bool = ...,
522522 ** kwargs
0 commit comments