@@ -1433,7 +1433,8 @@ def plot_date(self, x, y, fmt='o', tz=None, xdate=True, ydate=False,
1433
1433
1434
1434
# @_preprocess_data() # let 'plot' do the unpacking..
1435
1435
@docstring .dedent_interpd
1436
- def loglog (self , * args , ** kwargs ):
1436
+ def loglog (self , * args , basex = 10 , basey = 10 , subsx = None , subsy = None ,
1437
+ nonposx = 'mask' , nonposy = 'mask' , ** kwargs ):
1437
1438
"""
1438
1439
Make a plot with log scaling on both the x and y axis.
1439
1440
@@ -1475,20 +1476,13 @@ def loglog(self, *args, **kwargs):
1475
1476
**kwargs
1476
1477
All parameters supported by `.plot`.
1477
1478
"""
1478
- dx = {k : kwargs .pop (k ) for k in ['basex' , 'subsx' , 'nonposx' ]
1479
- if k in kwargs }
1480
- dy = {k : kwargs .pop (k ) for k in ['basey' , 'subsy' , 'nonposy' ]
1481
- if k in kwargs }
1482
-
1483
- self .set_xscale ('log' , ** dx )
1484
- self .set_yscale ('log' , ** dy )
1485
-
1486
- l = self .plot (* args , ** kwargs )
1487
- return l
1479
+ self .set_xscale ('log' , basex = basex , subsx = subsx , nonposx = nonposx )
1480
+ self .set_yscale ('log' , basey = basey , subsy = subsy , nonposy = nonposy )
1481
+ return self .plot (* args , ** kwargs )
1488
1482
1489
1483
# @_preprocess_data() # let 'plot' do the unpacking..
1490
1484
@docstring .dedent_interpd
1491
- def semilogx (self , * args , ** kwargs ):
1485
+ def semilogx (self , * args , basex = 10 , subsx = None , nonposx = 'mask' , ** kwargs ):
1492
1486
"""
1493
1487
Make a plot with log scaling on the x axis.
1494
1488
@@ -1528,16 +1522,12 @@ def semilogx(self, *args, **kwargs):
1528
1522
**kwargs
1529
1523
All parameters supported by `.plot`.
1530
1524
"""
1531
- d = {k : kwargs .pop (k ) for k in ['basex' , 'subsx' , 'nonposx' ]
1532
- if k in kwargs }
1533
-
1534
- self .set_xscale ('log' , ** d )
1535
- l = self .plot (* args , ** kwargs )
1536
- return l
1525
+ self .set_xscale ('log' , basex = basex , subsx = subsx , nonposx = nonposx )
1526
+ return self .plot (* args , ** kwargs )
1537
1527
1538
1528
# @_preprocess_data() # let 'plot' do the unpacking..
1539
1529
@docstring .dedent_interpd
1540
- def semilogy (self , * args , ** kwargs ):
1530
+ def semilogy (self , * args , basey = 10 , subsy = None , nonposy = 'mask' , ** kwargs ):
1541
1531
"""
1542
1532
Make a plot with log scaling on the y axis.
1543
1533
@@ -1577,12 +1567,8 @@ def semilogy(self, *args, **kwargs):
1577
1567
**kwargs
1578
1568
All parameters supported by `.plot`.
1579
1569
"""
1580
- d = {k : kwargs .pop (k ) for k in ['basey' , 'subsy' , 'nonposy' ]
1581
- if k in kwargs }
1582
- self .set_yscale ('log' , ** d )
1583
- l = self .plot (* args , ** kwargs )
1584
-
1585
- return l
1570
+ self .set_yscale ('log' , basey = basey , subsy = subsy , nonposy = nonposy )
1571
+ return self .plot (* args , ** kwargs )
1586
1572
1587
1573
@_preprocess_data (replace_names = ["x" ], label_namer = "x" )
1588
1574
def acorr (self , x , ** kwargs ):
0 commit comments