8000 Merge pull request #29341 from stefanv/add_subplots-axes3d · fedora-python/matplotlib@abda9dd · GitHub
[go: up one dir, main page]

Skip to content

Commit abda9dd

Browse files
authored
Merge pull request matplotlib#29341 from stefanv/add_subplots-axes3d
2 parents cfe41d4 + 56fcafb commit abda9dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/figure.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ from matplotlib.lines import Line2D
2525
from matplotlib.patches import Rectangle, Patch
2626
from matplotlib.text import Text
2727
from matplotlib.transforms import Affine2D, Bbox, BboxBase, Transform
28+
from mpl_toolkits.mplot3d import Axes3D
29+
2830
from .typing import ColorType, HashableList
2931

3032
_T = TypeVar("_T")
@@ -87,6 +89,8 @@ class FigureBase(Artist):
8789

8890
# TODO: docstring indicates SubplotSpec a valid arg, but none of the listed signatures appear to be that
8991
@overload
92+
def add_subplot(self, *args, projection: Literal["3d"], **kwargs) -> Axes3D: ...
93+
@overload
9094
def add_subplot(
9195
self, nrows: int, ncols: int, index: int | tuple[int, int], **kwargs
9296
) -> Axes: ...

0 commit comments

Comments
 (0)
0