@@ -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
@@ -285,7 +285,7 @@ class Axes(_AxesBase):
285285 x : ArrayLike ,
286286 explode : ArrayLike | None = ...,
287287 labels : Sequence [str ] | None = ...,
288- colors : Sequence [Color ] | None = ...,
288+ colors : Sequence [ColorType ] | None = ...,
289289 autopct : str | Callable [[float ], str ] | None = ...,
290290 pctdistance : float = ...,
291291 shadow : bool = ...,
@@ -309,7 +309,7 @@ class Axes(_AxesBase):
309309 yerr : float | ArrayLike | None = ...,
310310 xerr : float | ArrayLike | None = ...,
311311 fmt : str = ...,
312- ecolor : Color | None = ...,
312+ ecolor : ColorType | None = ...,
313313 elinewidth : float | None = ...,
314314 capsize : float | None = ...,
315315 barsabove : bool = ...,
@@ -379,7 +379,7 @@ class Axes(_AxesBase):
379379 x : float | ArrayLike ,
380380 y : float | ArrayLike ,
381381 s : float | ArrayLike | None = ...,
382- c : Sequence [Color ] | Color | None = ...,
382+ c : Sequence [ColorType ] | ColorType | None = ...,
383383 marker : MarkerType | None = ...,
384384 cmap : str | Colormap | None = ...,
385385 norm : str | Normalize | None = ...,
@@ -388,7 +388,7 @@ class Axes(_AxesBase):
388388 alpha : float | None = ...,
389389 linewidths : float | Sequence [float ] | None = ...,
390390 * ,
391- edgecolors : Literal ["face" , "none" ] | Color | Sequence [Color ] | None = ...,
391+ edgecolors : Literal ["face" , "none" ] | ColorType | Sequence [ColorType ] | None = ...,
392392 plotnonfinite : bool = ...,
393393 ** kwargs
394394 ) -> PathCollection : ...
@@ -408,7 +408,7 @@ class Axes(_AxesBase):
408408 vmax : float | None = ...,
409409 alpha : float | None = ...,
410410 linewidths : float | None = ...,
411- edgecolors : Literal ["face" , "none" ] | Color = ...,
411+ edgecolors : Literal ["face" , "none" ] | ColorType = ...,
412412 reduce_C_function : Callable [[np .ndarray ], float ] = ...,
413413 mincnt : int | None = ...,
414414 marginals : bool = ...,
@@ -515,7 +515,7 @@ class Axes(_AxesBase):
515515 orientation : Literal ["vertical" , "horizontal" ] = ...,
516516 rwidth : float | None = ...,
517517 log : bool = ...,
518- color : Color | Sequence [Color ] | None = ...,
518+ color : ColorType | Sequence [ColorType ] | None = ...,
519519 label : str | Sequence [str ] | None = ...,
520520 stacked : bool = ...,
521521 ** kwargs
0 commit comments