@@ -1115,7 +1115,7 @@ def figlegend(*args, **kwargs) -> Legend:
1115
1115
def axes (
1116
1116
arg : None | tuple [float , float , float , float ] = None ,
1117
1117
** kwargs
1118
- ) -> Axes :
1118
+ ) -> matplotlib . axes . Axes :
1119
1119
"""
1120
1120
Add an Axes to the current figure and make it the current Axes.
1121
1121
@@ -1201,7 +1201,7 @@ def axes(
1201
1201
return fig .add_axes (arg , ** kwargs )
1202
1202
1203
1203
1204
- def delaxes (ax : Axes | None = None ) -> None :
1204
+ def delaxes (ax : matplotlib . axes . Axes | None = None ) -> None :
1205
1205
"""
1206
1206
Remove an `~.axes.Axes` (defaulting to the current axes) from its figure.
1207
1207
"""
@@ -1439,7 +1439,7 @@ def subplots(
1439
1439
subplot_kw : dict [str , Any ] | None = None ,
1440
1440
gridspec_kw : dict [str , Any ] | None = None ,
1441
1441
** fig_kw
1442
- ) -> tuple [Figure , Axes | np .ndarray | SubplotBase ]:
1442
+ ) -> tuple [Figure , matplotlib . axes . Axes | np .ndarray | SubplotBase ]:
1443
1443
"""
1444
1444
Create a figure and a set of subplots.
1445
1445
@@ -1603,7 +1603,7 @@ def subplot_mosaic(
1603
1603
gridspec_kw : dict [str , Any ] | None = None ,
1604
1604
per_subplot_kw : dict [Any , dict [str , Any ]] | None = None ,
1605
1605
** fig_kw
1606
- ) -> tuple [Figure , dict [Any , Axes ]]:
1606
+ ) -> tuple [Figure , dict [Any , matplotlib . axes . Axes ]]:
1607
1607
"""
1608
1608
Build a layout of Axes based on ASCII art or nested lists.
1609
1609
@@ -1720,7 +1720,7 @@ def subplot2grid(
1720
1720
rowspan : int = 1 , colspan : int = 1 ,
1721
1721
fig : Figure | None = None ,
1722
1722
** kwargs
1723
- ) -> Axes :
1723
+ ) -> matplotlib . axes . Axes :
1724
1724
"""
1725
1725
Create a subplot at a specific location inside a regular grid.
1726
1726
@@ -1782,7 +1782,7 @@ def subplot2grid(
1782
1782
return ax
1783
1783
1784
1784
1785
- def twinx (ax : Axes | None = None ) -> _AxesBase :
1785
+ def twinx (ax : matplotlib . axes . Axes | None = None ) -> _AxesBase :
1786
1786
"""
1787
1787
Make and return a second axes that shares the *x*-axis. The new axes will
1788
1788
overlay *ax* (or the current axes if *ax* is *None*), and its ticks will be
@@ -1798,7 +1798,7 @@ def twinx(ax: Axes | None = None) -> _AxesBase:
1798
1798
return ax1
1799
1799
1800
1800
1801
- def twiny (ax : Axes | None = None ) -> _AxesBase :
1801
+ def twiny (ax : matplotlib . axes . Axes | None = None ) -> _AxesBase :
1802
1802
"""
1803
1803
Make and return a second axes that shares the *y*-axis. The new axes will
1804
1804
overlay *ax* (or the current axes if *ax* is *None*), and its ticks will be
@@ -2253,8 +2253,8 @@ def _get_pyplot_commands() -> list[str]:
2253
2253
@_copy_docstring_and_deprecators (Figure .colorbar )
2254
2254
def colorbar (
2255
2255
mappable : ScalarMappable | None = None ,
2256
- cax : Axes | None = None ,
2257
- ax : Axes | Iterable [Axes ] | None = None ,
2256
+ cax : matplotlib . axes . Axes | None = None ,
2257
+ ax : matplotlib . axes . Axes | Iterable [matplotlib . axes . Axes ] | None = None ,
2258
2258
** kwargs
2259
2259
) -> Colorbar :
2260
2260
if mappable is None :
0 commit comments