Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Backport PR #29545 on branch v3.10.x (DOC: correctly specify return type offigaspect)#29859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletionslib/matplotlib/figure.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3665,8 +3665,8 @@ def figaspect(arg):

Returns
-------
width, height : float
Thefigure size in inches.
size : (2,) array
Thewidth and height of the figure in inches.

Notes
-----
Expand Down
4 changes: 3 additions & 1 deletionlib/matplotlib/figure.pyi
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -418,4 +418,6 @@ class Figure(FigureBase):
rect: tuple[float, float, float, float] | None = ...
) -> None: ...

def figaspect(arg: float | ArrayLike) -> tuple[float, float]: ...
def figaspect(
arg: float | ArrayLike,
) -> np.ndarray[tuple[Literal[2]], np.dtype[np.float64]]: ...
2 changes: 1 addition & 1 deletionlib/matplotlib/pyplot.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -873,7 +873,7 @@ def figure(
# autoincrement if None, else integer from 1-N
num: int | str | Figure | SubFigure | None = None,
# defaults to rc figure.figsize
figsize:tuple[float, float] | None = None,
figsize:ArrayLike | None = None,
# defaults to rc figure.dpi
dpi: float | None = None,
*,
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp