@@ -1115,7 +1115,7 @@ def figlegend(*args, **kwargs) -> Legend:
11151115def axes (
11161116 arg : None | tuple [float , float , float , float ] = None ,
11171117 ** kwargs
1118- ) -> Axes :
1118+ ) -> matplotlib . axes . Axes :
11191119 """
11201120 Add an Axes to the current figure and make it the current Axes.
11211121
@@ -1201,7 +1201,7 @@ def axes(
12011201 return fig .add_axes (arg , ** kwargs )
12021202
12031203
1204- def delaxes (ax : Axes | None = None ) -> None :
1204+ def delaxes (ax : matplotlib . axes . Axes | None = None ) -> None :
12051205 """
12061206 Remove an `~.axes.Axes` (defaulting to the current axes) from its figure.
12071207 """
@@ -1439,7 +1439,7 @@ def subplots(
14391439 subplot_kw : dict [str , Any ] | None = None ,
14401440 gridspec_kw : dict [str , Any ] | None = None ,
14411441 ** fig_kw
1442- ) -> tuple [Figure , Axes | np .ndarray | SubplotBase ]:
1442+ ) -> tuple [Figure , matplotlib . axes . Axes | np .ndarray | SubplotBase ]:
14431443 """
14441444 Create a figure and a set of subplots.
14451445
@@ -1603,7 +1603,7 @@ def subplot_mosaic(
16031603 gridspec_kw : dict [str , Any ] | None = None ,
16041604 per_subplot_kw : dict [Any , dict [str , Any ]] | None = None ,
16051605 ** fig_kw
1606- ) -> tuple [Figure , dict [Any , Axes ]]:
1606+ ) -> tuple [Figure , dict [Any , matplotlib . axes . Axes ]]:
16071607 """
16081608 Build a layout of Axes based on ASCII art or nested lists.
16091609
@@ -1720,7 +1720,7 @@ def subplot2grid(
17201720 rowspan : int = 1 , colspan : int = 1 ,
17211721 fig : Figure | None = None ,
17221722 ** kwargs
1723- ) -> Axes :
1723+ ) -> matplotlib . axes . Axes :
17241724 """
17251725 Create a subplot at a specific location inside a regular grid.
17261726
@@ -1782,7 +1782,7 @@ def subplot2grid(
17821782 return ax
17831783
17841784
1785- def twinx (ax : Axes | None = None ) -> _AxesBase :
1785+ def twinx (ax : matplotlib . axes . Axes | None = None ) -> _AxesBase :
17861786 """
17871787 Make and return a second axes that shares the *x*-axis. The new axes will
17881788 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:
17981798 return ax1
17991799
18001800
1801- def twiny (ax : Axes | None = None ) -> _AxesBase :
1801+ def twiny (ax : matplotlib . axes . Axes | None = None ) -> _AxesBase :
18021802 """
18031803 Make and return a second axes that shares the *y*-axis. The new axes will
18041804 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]:
22532253@_copy_docstring_and_deprecators (Figure .colorbar )
22542254def colorbar (
22552255 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 ,
22582258 ** kwargs
22592259) -> Colorbar :
22602260 if mappable is None :
0 commit comments