Skip to content

Commit 41b701b

Browse files
committed
Update polar and set_loglevel signature on pyplot.py
1 parent 608b51f commit 41b701b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

lib/matplotlib/pyplot.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ def uninstall_repl_displayhook() -> None:
338338

339339
# Ensure this appears in the pyplot docs.
340340
@_copy_docstring_and_deprecators(matplotlib.set_loglevel)
341-
def set_loglevel(*args, **kwargs) -> None:
342-
return matplotlib.set_loglevel(*args, **kwargs)
341+
def set_loglevel(level) -> None:
342+
return matplotlib.set_loglevel(level)
343343

344344

345345
@_copy_docstring_and_deprecators(Artist.findobj)
@@ -2690,7 +2690,13 @@ def matshow(A: ArrayLike, fignum: None | int = None, **kwargs) -> AxesImage:
26902690
return im
26912691

26922692

2693-
def polar(*args, **kwargs) -> list[Line2D]:
2693+
def polar(
2694+
*args,
2695+
scalex=True,
2696+
scaley=True,
2697+
data=None,
2698+
**kwargs
2699+
) -> list[Line2D]:
26942700
"""
26952701
Make a polar plot.
26962702

0 commit comments

Comments
 (0)