@@ -1766,24 +1766,25 @@ 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 *basex/y*, *subsx/y* and *nonposx/y* control
1770
- the x/y-axis properties. They are just forwarded to `.Axes.set_xscale`
1771
- and `.Axes.set_yscale`.
1769
+ The additional parameters *base*, *subs* and *nonpos* control the
1770
+ x/y-axis properties. They are just forwarded to `.Axes.set_xscale` and
1771
+ `.Axes.set_yscale`. To use different properties on the x-axis and the
1772
+ y-axis, use e.g.
1773
+ ``ax.set_xscale("log", base=10); ax.set_yscale("log", base=2)``.
1772
1774
1773
1775
Parameters
1774
1776
----------
1775
- basex, basey : float, default: 10
1776
- Base of the x/y logarithm.
1777
+ base : float, default: 10
1778
+ Base of the logarithm.
1777
1779
1778
- subsx, subsy : sequence, optional
1779
- The location of the minor x/y ticks. If *None*, reasonable
1780
- locations are automatically chosen depending on the number of
1781
- decades in the plot.
1782
- See `.Axes.set_xscale` / `.Axes.set_yscale` for details.
1780
+ subs : sequence, optional
1781
+ The location of the minor ticks. If *None*, reasonable locations
1782
+ are automatically chosen depending on the number of decades in the
1783
+ plot. See `.Axes.set_xscale`/`.Axes.set_yscale` for details.
1783
1784
1784
- nonposx, nonposy : {'mask', 'clip'}, default: 'mask'
1785
- Non-positive values in x or y can be masked as invalid, or clipped
1786
- to a very small positive number.
1785
+ nonpos : {'mask', 'clip'}, default: 'mask'
1786
+ Non-positive values can be masked as invalid, or clipped to a very
1787
+ small positive number.
1787
1788
1788
1789
Returns
1789
1790
-------
@@ -1795,13 +1796,14 @@ def loglog(self, *args, **kwargs):
1795
1796
**kwargs
1796
1797
All parameters supported by `.plot`.
1797
1798
"""
1798
- dx = {k [: - 1 ]: kwargs . pop ( k ) for k in [ 'basex' , 'subsx' , 'nonposx' ]
1799
- if k in kwargs }
1799
+ dx = {k : v for k , v in kwargs . items ()
1800
+ if k in [ 'base' , 'subs' , 'nonpos' , 'basex' , 'subsx' , 'nonposx' ] }
1800
1801
self .set_xscale ('log' , ** dx )
1801
- dy = {k [: - 1 ]: kwargs . pop ( k ) for k in [ 'basey' , 'subsy' , 'nonposy' ]
1802
- if k in kwargs }
1802
+ dy = {k : v for k , v in kwargs . items ()
1803
+ if k in [ 'base' , 'subs' , 'nonpos' , 'basey' , 'subsy' , 'nonposy' ] }
1803
1804
self .set_yscale ('log' , ** dy )
1804
- return self .plot (* args , ** kwargs )
1805
+ return self .plot (
1806
+ * args , ** {k : v for k , v in kwargs .items () if k not in {* dx , * dy }})
1805
1807
1806
1808
# @_preprocess_data() # let 'plot' do the unpacking..
1807
1809
@docstring .dedent_interpd
@@ -1818,20 +1820,20 @@ def semilogx(self, *args, **kwargs):
1818
1820
the x-axis to log scaling. All of the concepts and parameters of plot
1819
1821
can be used here as well.
1820
1822
1821
- The additional parameters *basex *, *subsx* and *nonposx * control the
1823
+ The additional parameters *base *, *subs*, and *nonpos * control the
1822
1824
x-axis properties. They are just forwarded to `.Axes.set_xscale`.
1823
1825
1824
1826
Parameters
1825
1827
----------
1826
- basex : float, default: 10
1828
+ base : float, default: 10
1827
1829
Base of the x logarithm.
1828
1830
1829
- subsx : array-like, optional
1831
+ subs : array-like, optional
1830
1832
The location of the minor xticks. If *None*, reasonable locations
1831
1833
are automatically chosen depending on the number of decades in the
1832
1834
plot. See `.Axes.set_xscale` for details.
1833
1835
1834
- nonposx : {'mask', 'clip'}, default: 'mask'
1836
+ nonpos : {'mask', 'clip'}, default: 'mask'
1835
1837
Non-positive values in x can be masked as invalid, or clipped to a
1836
1838
very small positive number.
1837
1839
@@ -1845,10 +1847,11 @@ def semilogx(self, *args, **kwargs):
1845
1847
**kwargs
1846
1848
All parameters supported by `.plot`.
1847
1849
"""
1848
- d = {k [: - 1 ]: kwargs . pop ( k ) for k in [ 'basex' , 'subsx' , 'nonposx' ]
1849
- if k in kwargs }
1850
+ d = {k : v for k , v in kwargs . items ()
1851
+ if k in [ 'base' , 'subs' , 'nonpos' , 'basex' , 'subsx' , 'nonposx' ] }
1850
1852
self .set_xscale ('log' , ** d )
1851
- return self .plot (* args , ** kwargs )
1853
+ return self .plot (
1854
+ * args , ** {k : v for k , v in kwargs .items () if k not in d })
1852
1855
1853
1856
# @_preprocess_data() # let 'plot' do the unpacking..
1854
1857
@docstring .dedent_interpd
@@ -1865,20 +1868,20 @@ def semilogy(self, *args, **kwargs):
1865
1868
the y-axis to log scaling. All of the concepts and parameters of plot
1866
1869
can be used here as well.
1867
1870
1868
- The additional parameters *basey *, *subsy* and *nonposy * control the
1871
+ The additional parameters *base *, *subs*, and *nonpos * control the
1869
1872
y-axis properties. They are just forwarded to `.Axes.set_yscale`.
1870
1873
1871
1874
Parameters
1872
1875
----------
1873
- basey : float, default: 10
1876
+ base : float, default: 10
1874
1877
Base of the y logarithm.
1875
1878
1876
- subsy : array-like, optional
1879
+ subs : array-like, optional
1877
1880
The location of the minor yticks. If *None*, reasonable locations
1878
1881
are automatically chosen depending on the number of decades in the
1879
1882
plot. See `.Axes.set_yscale` for details.
1880
1883
1881
- nonposy : {'mask', 'clip'}, default: 'mask'
1884
+ nonpos : {'mask', 'clip'}, default: 'mask'
1882
1885
Non-positive values in y can be masked as invalid, or clipped to a
1883
1886
very small positive number.
1884
1887
@@ -1892,10 +1895,11 @@ def semilogy(self, *args, **kwargs):
1892
1895
**kwargs
1893
1896
All parameters supported by `.plot`.
1894
1897
"""
1895
- d = {k [: - 1 ]: kwargs . pop ( k ) for k in [ 'basey' , 'subsy' , 'nonposy' ]
1896
- if k in kwargs }
1898
+ d = {k : v for k , v in kwargs . items ()
1899
+ if k in [ 'base' , 'subs' , 'nonpos' , 'basey' , 'subsy' , 'nonposy' ] }
1897
1900
self .set_yscale ('log' , ** d )
1898
- return self .plot (* args , ** kwargs )
1901
+ return self .plot (
1902
+ * args , ** {k : v for k , v in kwargs .items () if k not in d })
1899
1903
1900
1904
@_preprocess_data (replace_names = ["x" ], label_namer = "x" )
1901
1905
def acorr (self , x , ** kwargs ):
0 commit comments