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