10000 Quiet sphinx warnings (by using matplotlib.axes.Axes instead of Axes … · matplotlib/matplotlib@b7c5abf · GitHub
[go: up one dir, main page]

Skip to content

Commit b7c5abf

Browse files
committed
Quiet sphinx warnings (by using matplotlib.axes.Axes instead of Axes already in the namespace)
1 parent 95c9c17 commit b7c5abf

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/matplotlib/pyplot.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ def figlegend(*args, **kwargs) -> Legend:
10901090
def axes(
10911091
arg: None | tuple[float, float, float, float] = None,
10921092
**kwargs
1093-
) -> Axes:
1093+
) -> matplotlib.axes.Axes:
10941094
"""
10951095
Add an Axes to the current figure and make it the current Axes.
10961096
@@ -1176,7 +1176,7 @@ def axes(
11761176
return fig.add_axes(arg, **kwargs)
11771177

11781178

1179-
def delaxes(ax: Axes | None = None) -> None:
1179+
def delaxes(ax: matplotlib.axes.Axes | None = None) -> None:
11801180
"""
11811181
Remove an `~.axes.Axes` (defaulting to the current axes) from its figure.
11821182
"""
@@ -1414,7 +1414,7 @@ def subplots(
14141414
subplot_kw: dict[str, Any] | None = None,
14151415
gridspec_kw: dict[str, Any] | None = None,
14161416
**fig_kw
1417-
) -> tuple[Figure, Axes | np.ndarray | SubplotBase]:
1417+
) -> tuple[Figure, matplotlib.axes.Axes | np.ndarray | SubplotBase]:
14181418
"""
14191419
Create a figure and a set of subplots.
14201420
@@ -1578,7 +1578,7 @@ def subplot_mosaic(
15781578
gridspec_kw: dict[str, Any] | None = None,
15791579
per_subplot_kw: dict[Any, dict[str, Any]] | None = None,
15801580
**fig_kw
1581-
) -> tuple[Figure, dict[Any, Axes]]:
1581+
) -> tuple[Figure, dict[Any, matplotlib.axes.Axes]]:
15821582
"""
15831583
Build a layout of Axes based on ASCII art or nested lists.
15841584
@@ -1695,7 +1695,7 @@ def subplot2grid(
16951695
rowspan: int = 1, colspan: int = 1,
16961696
fig: Figure | None = None,
16971697
**kwargs
1698-
) -> Axes:
10000
1698+
) -> matplotlib.axes.Axes:
16991699
"""
17001700
Create a subplot at a specific location inside a regular grid.
17011701
@@ -1757,7 +1757,7 @@ def subplot2grid(
17571757
return ax
17581758

17591759

1760-
def twinx(ax: Axes | None = None) -> _AxesBase:
1760+
def twinx(ax: matplotlib.axes.Axes | None = None) -> _AxesBase:
17611761
"""
17621762
Make and return a second axes that shares the *x*-axis. The new axes will
17631763
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:
17731773
return ax1
17741774

17751775

1776-
def twiny(ax: Axes | None = None) -> _AxesBase:
1776+
def twiny(ax: matplotlib.axes.Axes | None = None) -> _AxesBase:
17771777
"""
17781778
Make and return a second axes that shares the *y*-axis. The new axes will
17791779
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]:
22282228
@_copy_docstring_and_deprecators(Figure.colorbar)
22292229
def colorbar(
22302230
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,
22332233
**kwargs
22342234
) -> Colorbar:
22352235
if mappable is None:

0 commit comments

Comments
 (0)
0