8000 TYP: allow for xlim/ylim passed as single tuple by ksunden · Pull Request #25711 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

TYP: allow for xlim/ylim passed as single tuple #25711

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all 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. Retry
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/matplotlib/axes/_base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class _AxesBase(martist.Artist):
def get_xlim(self) -> tuple[float, float]: ...
def set_xlim(
self,
left: float | None = ...,
left: float | tuple[float, float] | None = ...,
right: float | None = ...,
*,
emit: bool = ...,
Expand All @@ -338,7 +338,7 @@ class _AxesBase(martist.Artist):
def get_ylim(self) -> tuple[float, float]: ...
def set_ylim(
self,
bottom: float | None = ...,
bottom: float | tuple[float, float] | None = ...,
top: float | None = ...,
*,
emit: bool = ...,
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/cm.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ScalarMappable:
def get_array(self) -> np.ndarray | None: ...
def get_cmap(self) -> colors.Colormap: ...
def get_clim(self) -> tuple[float, float]: ...
def set_clim(self, vmin: float | None = ..., vmax: float | None = ...) -> None: ...
def set_clim(self, vmin: float | tuple[float, float] | None = ..., vmax: float | None = ...) -> None: ...
def get_alpha(self) -> float | None: ...
def set_cmap(self, cmap: str | colors.Colormap) -> None: ...
@property
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/projections/polar.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class PolarAxes(Axes):
def get_rsign(self) -> float: ...
def set_rlim(
self,
bottom: float | None = ...,
bottom: float | tuple[float, float] | None = ...,
top: float | None = ...,
*,
emit: bool = ...,
Expand Down
0