@@ -1766,7 +1766,7 @@ def loglog(self, *args, **kwargs):
1766
1766
both the x-axis and the y-axis to log scaling. All of the concepts and
1767
1767
parameters of plot can be used here as well.
1768
1768
1769
- The additional parameters *base*, *subs* and *nonpos * control the
1769
+ The additional parameters *base*, *subs* and *nonpositive * control the
1770
1770
x/y-axis properties. They are just forwarded to `.Axes.set_xscale` and
1771
1771
`.Axes.set_yscale`. To use different properties on the x-axis and the
1772
1772
y-axis, use e.g.
@@ -1782,7 +1782,7 @@ def loglog(self, *args, **kwargs):
1782
1782
are automatically chosen depending on the number of decades in the
1783
1783
plot. See `.Axes.set_xscale`/`.Axes.set_yscale` for details.
1784
1784
1785
- nonpos : {'mask', 'clip'}, default: 'mask'
1785
+ nonpositive : {'mask', 'clip'}, default: 'mask'
1786
1786
Non-positive values can be masked as invalid, or clipped to a very
1787
1787
small positive number.
1788
1788
@@ -1797,10 +1797,12 @@ def loglog(self, *args, **kwargs):
1797
1797
All parameters supported by `.plot`.
1798
1798
"""
1799
1799
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' ]}
1801
1802
self .set_xscale ('log' , ** dx )
1802
1803
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' ]}
1804
1806
self .set_yscale ('log' , ** dy )
1805
1807
return self .plot (
1806
1808
* args , ** {k : v for k , v in kwargs .items () if k not in {* dx , * dy }})
@@ -1820,7 +1822,7 @@ def semilogx(self, *args, **kwargs):
1820
1822
the x-axis to log scaling. All of the concepts and parameters of plot
1821
1823
can be used here as well.
1822
1824
1823
- The additional parameters *base*, *subs*, and *nonpos * control the
1825
+ The additional parameters *base*, *subs*, and *nonpositive * control the
1824
1826
x-axis properties. They are just forwarded to `.Axes.set_xscale`.
1825
1827
1826
1828
Parameters
@@ -1833,7 +1835,7 @@ def semilogx(self, *args, **kwargs):
1833
1835
are automatically chosen depending on the number of decades in the
1834
1836
plot. See `.Axes.set_xscale` for details.
1835
1837
1836
- nonpos : {'mask', 'clip'}, default: 'mask'
1838
+ nonpositive : {'mask', 'clip'}, default: 'mask'
1837
1839
Non-positive values in x can be masked as invalid, or clipped to a
1838
1840
very small positive number.
1839
1841
@@ -1848,7 +1850,8 @@ def semilogx(self, *args, **kwargs):
1848
1850
All parameters supported by `.plot`.
1849
1851
"""
1850
1852
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' ]}
1852
1855
self .set_xscale ('log' , ** d )
1853
1856
return self .plot (
1854
1857
* args , ** {k : v for k , v in kwargs .items () if k not in d })
@@ -1868,7 +1871,7 @@ def semilogy(self, *args, **kwargs):
1868
1871
the y-axis to log scaling. All of the concepts and parameters of plot
1869
1872
can be used here as well.
1870
1873
1871
- The additional parameters *base*, *subs*, and *nonpos * control the
1874
+ The additional parameters *base*, *subs*, and *nonpositive * control the
1872
1875
y-axis properties. They are just forwarded to `.Axes.set_yscale`.
1873
1876
1874
1877
Parameters
@@ -1881,7 +1884,7 @@ def semilogy(self, *args, **kwargs):
1881
1884
are automatically chosen depending on the number of decades in the
1882
1885
plot. See `.Axes.set_yscale` for details.
1883
1886
1884
- nonpos : {'mask', 'clip'}, default: 'mask'
1887
+ nonpositive : {'mask', 'clip'}, default: 'mask'
1885
1888
Non-positive values in y can be masked as invalid, or clipped to a
1886
1889
very small positive number.
1887
1890
@@ -1896,7 +1899,8 @@ def semilogy(self, *args, **kwargs):
1896
1899
All parameters supported by `.plot`.
1897
1900
"""
1898
1901
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' ]}
1900
1904
self .set_yscale ('log' , ** d )
1901
1905
return self .plot (
1902
1906
* 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",
2340
2344
if orientation == 'vertical' :
2341
2345
self ._process_unit_info (xdata = x , ydata = height , kwargs = kwargs )
2342
2346
if log :
2343
- self .set_yscale ('log' , nonpos = 'clip' )
2347
+ self .set_yscale ('log' , nonpositive = 'clip' )
2344
2348
elif orientation == 'horizontal' :
2345
2349
self ._process_unit_info (xdata = width , ydata = y , kwargs = kwargs )
2346
2350
if log :
2347
- self .set_xscale ('log' , nonpos = 'clip' )
2351
+ self .set_xscale ('log' , nonpositive = 'clip' )
2348
2352
2349
2353
# lets do some conversions now since some types cannot be
2350
2354
# subtracted uniformly
@@ -6712,9 +6716,9 @@ def hist(self, x, bins=None, range=None, density=False, weights=None,
6712
6716
6713
6717
if log :
6714
6718
if orientation == 'horizontal' :
6715
- self .set_xscale ('log' , nonpos = 'clip' )
6719
+ self .set_xscale ('log' , nonpositive = 'clip' )
6716
6720
else : # orientation == 'vertical'
6717
- self .set_yscale ('log' , nonpos = 'clip' )
6721
+ self .set_yscale ('log' , nonpositive = 'clip' )
6718
6722
6719
6723
if align == 'left' :
6720
6724
x -= 0.5 * (bins [1 ]- bins [0 ])
0 commit comments