@@ -1766,7 +1766,7 @@ def loglog(self, *args, **kwargs):
17661766 both the x-axis and the y-axis to log scaling. All of the concepts and
17671767 parameters of plot can be used here as well.
17681768
1769- The additional parameters *base*, *subs* and *nonpos * control the
1769+ The additional parameters *base*, *subs* and *nonpositive * control the
17701770 x/y-axis properties. They are just forwarded to `.Axes.set_xscale` and
17711771 `.Axes.set_yscale`. To use different properties on the x-axis and the
17721772 y-axis, use e.g.
@@ -1782,7 +1782,7 @@ def loglog(self, *args, **kwargs):
17821782 are automatically chosen depending on the number of decades in the
17831783 plot. See `.Axes.set_xscale`/`.Axes.set_yscale` for details.
17841784
1785- nonpos : {'mask', 'clip'}, default: 'mask'
1785+ nonpositive : {'mask', 'clip'}, default: 'mask'
17861786 Non-positive values can be masked as invalid, or clipped to a very
17871787 small positive number.
17881788
@@ -1797,10 +1797,12 @@ def loglog(self, *args, **kwargs):
17971797 All parameters supported by `.plot`.
17981798 """
17991799 dx = {k : v for k , v in kwargs .items ()
1800- if k in ['base' , 'subs' , 'nonpos' , 'basex' , 'subsx' , 'nonposx' ]}
1800+ if k in ['base' , 'subs' , 'nonpositive' ,
1801+ 'basex' , 'subsx' , 'nonposx' ]}
18011802 self .set_xscale ('log' , ** dx )
18021803 dy = {k : v for k , v in kwargs .items ()
1803- if k in ['base' , 'subs' , 'nonpos' , 'basey' , 'subsy' , 'nonposy' ]}
1804+ if k in ['base' , 'subs' , 'nonpositive' ,
1805+ 'basey' , 'subsy' , 'nonposy' ]}
18041806 self .set_yscale ('log' , ** dy )
18051807 return self .plot (
18061808 * args , ** {k : v for k , v in kwargs .items () if k not in {* dx , * dy }})
@@ -1820,7 +1822,7 @@ def semilogx(self, *args, **kwargs):
18201822 the x-axis to log scaling. All of the concepts and parameters of plot
18211823 can be used here as well.
18221824
1823- The additional parameters *base*, *subs*, and *nonpos * control the
1825+ The additional parameters *base*, *subs*, and *nonpositive * control the
18241826 x-axis properties. They are just forwarded to `.Axes.set_xscale`.
18251827
18261828 Parameters
@@ -1833,7 +1835,7 @@ def semilogx(self, *args, **kwargs):
18331835 are automatically chosen depending on the number of decades in the
18341836 plot. See `.Axes.set_xscale` for details.
18351837
1836- nonpos : {'mask', 'clip'}, default: 'mask'
1838+ nonpositive : {'mask', 'clip'}, default: 'mask'
18371839 Non-positive values in x can be masked as invalid, or clipped to a
18381840 very small positive number.
18391841
@@ -1848,7 +1850,8 @@ def semilogx(self, *args, **kwargs):
18481850 All parameters supported by `.plot`.
18491851 """
18501852 d = {k : v for k , v in kwargs .items ()
1851- if k in ['base' , 'subs' , 'nonpos' , 'basex' , 'subsx' , 'nonposx' ]}
1853+ if k in ['base' , 'subs' , 'nonpositive' ,
1854+ 'basex' , 'subsx' , 'nonposx' ]}
18521855 self .set_xscale ('log' , ** d )
18531856 return self .plot (
18541857 * args , ** {k : v for k , v in kwargs .items () if k not in d })
@@ -1868,7 +1871,7 @@ def semilogy(self, *args, **kwargs):
18681871 the y-axis to log scaling. All of the concepts and parameters of plot
18691872 can be used here as well.
18701873
1871- The additional parameters *base*, *subs*, and *nonpos * control the
1874+ The additional parameters *base*, *subs*, and *nonpositive * control the
18721875 y-axis properties. They are just forwarded to `.Axes.set_yscale`.
18731876
18741877 Parameters
@@ -1881,7 +1884,7 @@ def semilogy(self, *args, **kwargs):
18811884 are automatically chosen depending on the number of decades in the
18821885 plot. See `.Axes.set_yscale` for details.
18831886
1884- nonpos : {'mask', 'clip'}, default: 'mask'
1887+ nonpositive : {'mask', 'clip'}, default: 'mask'
18851888 Non-positive values in y can be masked as invalid, or clipped to a
18861889 very small positive number.
18871890
@@ -1896,7 +1899,8 @@ def semilogy(self, *args, **kwargs):
18961899 All parameters supported by `.plot`.
18971900 """
18981901 d = {k : v for k , v in kwargs .items ()
1899- if k in ['base' , 'subs' , 'nonpos' , 'basey' , 'subsy' , 'nonposy' ]}
1902+ if k in ['base' , 'subs' , 'nonpositive' ,
1903+ 'basey' , 'subsy' , 'nonposy' ]}
19001904 self .set_yscale ('log' , ** d )
19011905 return self .plot (
19021906 * args , ** {k : v for k , v in kwargs .items () if k not in d })
@@ -2340,11 +2344,11 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center",
23402344 if orientation == 'vertical' :
23412345 self ._process_unit_info (xdata = x , ydata = height , kwargs = kwargs )
23422346 if log :
2343- self .set_yscale ('log' , nonpos = 'clip' )
2347+ self .set_yscale ('log' , nonpositive = 'clip' )
23442348 elif orientation == 'horizontal' :
23452349 self ._process_unit_info (xdata = width , ydata = y , kwargs = kwargs )
23462350 if log :
2347- self .set_xscale ('log' , nonpos = 'clip' )
2351+ self .set_xscale ('log' , nonpositive = 'clip' )
23482352
23492353 # lets do some conversions now since some types cannot be
23502354 # subtracted uniformly
@@ -6712,9 +6716,9 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
67126716
67136717 if log :
67146718 if orientation == 'horizontal' :
6715- self .set_xscale ('log' , nonpos = 'clip' )
6719+ self .set_xscale ('log' , nonpositive = 'clip' )
67166720 else : # orientation == 'vertical'
6717- self .set_yscale ('log' , nonpos = 'clip' )
6721+ self .set_yscale ('log' , nonpositive = 'clip' )
67186722
67196723 if align == 'left' :
67206724 x -= 0.5 * (bins [1 ]- bins [0 ])
0 commit comments