From cc209aacdec5c147c774e77c11c1e51c577ea9f1 Mon Sep 17 00:00:00 2001 From: Petros Tzathas Date: Thu, 25 May 2023 20:25:30 +0200 Subject: [PATCH] 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. --- lib/matplotlib/axes/_axes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/axes/_axes.py b/lib/matplotlib/axes/_axes.py index 774c10d751d0..cdf889d5d21b 100644 --- a/lib/matplotlib/axes/_axes.py +++ b/lib/matplotlib/axes/_axes.py @@ -1892,7 +1892,7 @@ def semilogx(self, *args, **kwargs): are automatically chosen depending on the number of decades in the plot. See `.Axes.set_xscale` for details. - nonpositive : {'mask', 'clip'}, default: 'mask' + nonpositive : {'mask', 'clip'}, default: 'clip' Non-positive values in x can be masked as invalid, or clipped to a very small positive number. @@ -1939,7 +1939,7 @@ def semilogy(self, *args, **kwargs): are automatically chosen depending on the number of decades in the plot. See `.Axes.set_yscale` for details. - nonpositive : {'mask', 'clip'}, default: 'mask' + nonpositive : {'mask', 'clip'}, default: 'clip' Non-positive values in y can be masked as invalid, or clipped to a very small positive number.