@@ -1090,7 +1090,7 @@ def figlegend(*args, **kwargs) -> Legend:
1090
1090
def axes (
1091
1091
arg : None | tuple [float , float , float , float ] = None ,
1092
1092
** kwargs
1093
- ) -> Axes :
1093
+ ) -> matplotlib . axes . Axes :
1094
1094
"""
1095
1095
Add an Axes to the current figure and make it the current Axes.
1096
1096
@@ -1176,7 +1176,7 @@ def axes(
1176
1176
return fig .add_axes (arg , ** kwargs )
1177
1177
1178
1178
1179
- def delaxes (ax : Axes | None = None ) -> None :
1179
+ def delaxes (ax : matplotlib . axes . Axes | None = None ) -> None :
1180
1180
"""
1181
1181
Remove an `~.axes.Axes` (defaulting to the current axes) from its figure.
1182
1182
"""
@@ -1414,7 +1414,7 @@ def subplots(
1414
1414
subplot_kw : dict [str , Any ] | None = None ,
1415
1415
gridspec_kw : dict [str , Any ] | None = None ,
1416
1416
** fig_kw
1417
- ) -> tuple [Figure , Axes | np .ndarray | SubplotBase ]:
1417
+ ) -> tuple [Figure , matplotlib . axes . Axes | np .ndarray | SubplotBase ]:
1418
1418
"""
1419
1419
Create a figure and a set of subplots.
1420
1420
@@ -1578,7 +1578,7 @@ def subplot_mosaic(
1578
1578
gridspec_kw : dict [str , Any ] | None = None ,
1579
1579
per_subplot_kw : dict [Any , dict [str , Any ]] | None = None ,
1580
1580
** fig_kw
1581
- ) -> tuple [Figure , dict [Any , Axes ]]:
1581
+ ) -> tuple [Figure , dict [Any , matplotlib . axes . Axes ]]:
1582
1582
"""
1583
1583
Build a layout of Axes based on ASCII art or nested lists.
1584
1584
@@ -1695,7 +1695,7 @@ def subplot2grid(
1695
1695
rowspan : int = 1 , colspan : int = 1 ,
1696
1696
fig : Figure | None = None ,
1697
1697
** kwargs
1698
- ) -> Axes :
10000
1698
+ ) -> matplotlib . axes . Axes :
1699
1699
"""
1700
1700
Create a subplot at a specific location inside a regular grid.
1701
1701
@@ -1757,7 +1757,7 @@ def subplot2grid(
1757
1757
return ax
1758
1758
1759
1759
1760
- def twinx (ax : Axes | None = None ) -> _AxesBase :
1760
+ def twinx (ax : matplotlib . axes . Axes | None = None ) -> _AxesBase :
1761
1761
"""
1762
1762
Make and return a second axes that shares the *x*-axis. The new axes will
1763
1763
overlay *ax* (or the current axes if *ax* is *None*), and its ticks will be
@@ -1773,7 +1773,7 @@ def twinx(ax: Axes | None = None) -> _AxesBase:
1773
1773
return ax1
1774
1774
1775
1775
1776
- def twiny (ax : Axes | None = None ) -> _AxesBase :
1776
+ def twiny (ax : matplotlib . axes . Axes | None = None ) -> _AxesBase :
1777
1777
"""
1778
1778
Make and return a second axes that shares the *y*-axis. The new axes will
1779
1779
overlay *ax* (or the current axes if *ax* is *None*), and its ticks will be
@@ -2228,8 +2228,8 @@ def _get_pyplot_commands() -> list[str]:
2228
2228
@_copy_docstring_and_deprecators (Figure .colorbar )
2229
2229
def colorbar (
2230
2230
mappable : ScalarMappable | None = None ,
2231
- cax : Axes | None = None ,
2232
- ax : Axes | Iterable [Axes ] | None = None ,
2231
+ cax : matplotlib . axes . Axes | None = None ,
2232
+ ax : matplotlib . axes . Axes | Iterable [matplotlib . axes . Axes ] | None = None ,
2233
2233
** kwargs
2234
2234
) -> Colorbar :
2235
2235
if mappable is None :
0 commit comments