Skip to content

Commit cc209aa

Browse 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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines 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)