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

Overload the function signature of axline#29235

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

Open
li-ruihao wants to merge9 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromli-ruihao:feature/axline_definition_overload
Open
Changes from1 commit
Commits
Show all changes
9 commits
Select commitHold shift + click to select a range
a9bf66f
initial change on overloading axline, with one having the option to s…
li-ruihaoDec 5, 2024
e6e373e
Ran boilerplate.py to change axline definition in pyplot.py
li-ruihaoDec 5, 2024
e1a95bb
readded default type for xy2 and slope to be None in overloaded axlin…
li-ruihaoDec 5, 2024
00543ae
remodified _axes.pyi for minor changes to retain original behaviours
li-ruihaoDec 5, 2024
92e858b
Merge branch 'feature/axline_definition_overload' of https://github.c…
li-ruihaoDec 5, 2024
f5d852c
reverted changes in lib/matplotlib/pyplot.py
li-ruihaoDec 5, 2024
663982f
ran tools/boilerplate.py to update lib/matplotlib/pyplot.py to fix fa…
li-ruihaoDec 5, 2024
f6cea91
Merge remote-tracking branch 'upstream/main'
li-ruihaoDec 5, 2024
faf2231
Merge branch 'main' into feature/axline_definition_overload
li-ruihaoDec 5, 2024
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
NextNext commit
initial change on overloading axline, with one having the option to s…
…pecify xy2, and another having the option to specify slope
  • Loading branch information
@li-ruihao
li-ruihao committedDec 5, 2024
commita9bf66fd103cc3dac531ad54724e188f304bf8c9
14 changes: 10 additions & 4 deletionslib/matplotlib/axes/_axes.pyi
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -139,15 +139,21 @@ class Axes(_AxesBase):
self, x: float = ..., ymin: float = ..., ymax: float = ..., **kwargs
) -> Line2D: ...

# TODO: Could separate the xy2 and slope signatures
@overload
def axline(
self,
xy1: tuple[float, float],
xy2: tuple[float, float] | None = ...,
*,
slope: float | None = ...,
xy2: tuple[float, float],
**kwargs
) -> AxLine: ...
@overload
def axline(
self,
xy1: tuple[float, float],
slope: float,
**kwargs
) -> AxLine: ...

def axhspan(
self, ymin: float, ymax: float, xmin: float = ..., xmax: float = ..., **kwargs
) -> Rectangle: ...
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp