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

Appearance settings

Commit 76316a9

Browse filesBrowse files
committed
Update for changes on main: Axes.ecdf, guiEvent read only, param deprecation
1 parent 055b648 commit 76316a9
Copy full SHA for 76316a9

File tree

Expand file treeCollapse file tree

5 files changed

+34
-10
lines changed
Filter options
Expand file treeCollapse file tree

5 files changed

+34
-10
lines changed

‎ci/mypy-stubtest-allowlist.txt

Copy file name to clipboardExpand all lines: ci/mypy-stubtest-allowlist.txt
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ matplotlib.*\.set$
1717
matplotlib.pyplot.*
1818
matplotlib.typing.*
1919

20-
# data arg "decorator"
20+
# _preprocess_data arg decorator
2121
matplotlib.axes.*Axes.acorr
2222
matplotlib.axes.*Axes.angle_spectrum
2323
matplotlib.axes.*Axes.bar
@@ -28,6 +28,7 @@ matplotlib.axes.*Axes.cohere
2828
matplotlib.axes.*Axes.contour
2929
matplotlib.axes.*Axes.contourf
3030
matplotlib.axes.*Axes.csd
31+
matplotlib.axes.*Axes.ecdf
3132
matplotlib.axes.*Axes.errorbar
3233
matplotlib.axes.*Axes.eventplot
3334
matplotlib.axes.*Axes.fill_between
@@ -58,7 +59,7 @@ matplotlib.axes.*Axes.xcorr
5859
matplotlib.axis.Axis.draw
5960
matplotlib.offsetbox.*Offset[Bb]ox.get_offset
6061

61-
# Inconsistent super/sub class signatures (other than just name)
62+
# Inconsistent super/sub class signatures (other than just arg name)
6263
matplotlib.ticker.MultipleLocator.set_params
6364
matplotlib.text.Annotation.get_window_extent
6465

@@ -87,7 +88,6 @@ matplotlib.scale.SymmetricalLogTransform.transform_non_affine
8788
matplotlib.table.Cell.set_transform
8889
matplotlib.ticker.LogLocator.nonsingular
8990
matplotlib.ticker.LogitLocator.nonsingular
90-
matplotlib.text.Annotation.contains
9191
matplotlib.transforms.Affine2DBase.transform_affine
9292
matplotlib.transforms.AffineBase.transform_non_affine
9393
matplotlib.transforms.BlendedGenericTransform.transform_non_affine

‎lib/matplotlib/axes/_axes.pyi

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.pyi
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,16 @@ class Axes(_AxesBase):
552552
cmax: float | None = ...,
553553
**kwargs
554554
) -> tuple[np.ndarray, np.ndarray, np.ndarray, QuadMesh]: ...
555+
def ecdf(
556+
self,
557+
x: ArrayLike,
558+
weights: ArrayLike | None = ...,
559+
*,
560+
complementary: bool=...,
561+
orientation: Literal["vertical", "horizonatal"]=...,
562+
compress: bool=...,
563+
**kwargs
564+
) -> Line2D: ...
555565
def psd(
556566
self,
557567
x: ArrayLike,

‎lib/matplotlib/backend_bases.pyi

Copy file name to clipboardExpand all lines: lib/matplotlib/backend_bases.pyi
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,13 @@ class TimerBase:
214214
class Event:
215215
name: str
216216
canvas: FigureCanvasBase
217-
guiEvent: Any
218217
def __init__(
219218
self, name: str, canvas: FigureCanvasBase, guiEvent: Any | None = ...
220219
) -> None: ...
221220

221+
@property
222+
def guiEvent(self) -> Any: ...
223+
222224
class DrawEvent(Event):
223225
renderer: RendererBase
224226
def __init__(

‎lib/matplotlib/legend.pyi

Copy file name to clipboardExpand all lines: lib/matplotlib/legend.pyi
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Legend(Artist):
117117
ncol: int = ...,
118118
draggable: bool = ...
119119
) -> None: ...
120-
def contains(self, event: MouseEvent) -> tuple[bool, dict[Any, Any]]: ...
120+
def contains(self, mouseevent: MouseEvent) -> tuple[bool, dict[Any, Any]]: ...
121121
def set_ncols(self, ncols: int) -> None: ...
122122
@classmethod
123123
def get_default_handler_map(cls) -> dict[type, HandlerBase]: ...

‎lib/matplotlib/pyplot.py

Copy file name to clipboardExpand all lines: lib/matplotlib/pyplot.py
+17-5Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2890,12 +2890,24 @@ def csd(
28902890
# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
28912891
@_copy_docstring_and_deprecators(Axes.ecdf)
28922892
def ecdf(
2893-
x, weights=None, *, complementary=False,
2894-
orientation='vertical', compress=False, data=None, **kwargs):
2893+
x: ArrayLike,
2894+
weights: ArrayLike | None = None,
2895+
*,
2896+
complementary: bool = False,
2897+
orientation: Literal["vertical", "horizonatal"] = "vertical",
2898+
compress: bool = False,
2899+
data=None,
2900+
**kwargs,
2901+
) -> Line2D:
28952902
return gca().ecdf(
2896-
x, weights=weights, complementary=complementary,
2897-
orientation=orientation, compress=compress,
2898-
**({"data": data} if data is not None else {}), **kwargs)
2903+
x,
2904+
weights=weights,
2905+
complementary=complementary,
2906+
orientation=orientation,
2907+
compress=compress,
2908+
**({"data": data} if data is not None else {}),
2909+
**kwargs,
2910+
)
28992911

29002912

29012913
# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.