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 cc209aa

Browse filesBrowse files
authored
Change documented default value of nonpositive parameter
The default value of nonpositive is falsely documented as 'mask' instead of 'clip'. This was fixed for the loglog function but needed to be fixed for semilogx and semilogy as well.
1 parent 64203a1 commit cc209aa
Copy full SHA for cc209aa

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎lib/matplotlib/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,7 @@ def semilogx(self, *args, **kwargs):
18921892
are automatically chosen depending on the number of decades in the
18931893
plot. See `.Axes.set_xscale` for details.
18941894
1895-
nonpositive : {'mask', 'clip'}, default: 'mask'
1895+
nonpositive : {'mask', 'clip'}, default: 'clip'
18961896
Non-positive values in x can be masked as invalid, or clipped to a
18971897
very small positive number.
18981898
@@ -1939,7 +1939,7 @@ def semilogy(self, *args, **kwargs):
19391939
are automatically chosen depending on the number of decades in the
19401940
plot. See `.Axes.set_yscale` for details.
19411941
1942-
nonpositive : {'mask', 'clip'}, default: 'mask'
1942+
nonpositive : {'mask', 'clip'}, default: 'clip'
19431943
Non-positive values in y can be masked as invalid, or clipped to a
19441944
very small positive number.
19451945

0 commit comments

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