@@ -1371,30 +1371,23 @@ def ylim(*args, **kwargs):
1371
1371
def xticks (ticks = None , labels = None , ** kwargs ):
1372
1372
"""
1373
1373
Get or set the current tick locations and labels of the x-axis.
1374
-
1375
- Call signatures::
1376
-
1377
- locs, labels = xticks() # Get locations and labels
1378
- xticks(ticks, [labels], **kwargs) # Set locations and labels
1374
+ Pass no arguments to return the current values without modifying them.
1379
1375
1380
1376
Parameters
1381
1377
----------
1382
- ticks : array-like
1383
- A list of positions at which ticks should be placed. You can pass an
1384
- empty list to disable xticks.
1385
-
1378
+ ticks : array-like, optional
1379
+ The list of xtick locations. Passing an empty list removes all xticks.
1386
1380
labels : array-like, optional
1387
- A list of explicit labels to place at the given *locs*.
1388
-
1381
+ The labels to place at the given *locs*.
1389
1382
**kwargs
1390
1383
`.Text` properties can be used to control the appearance of the labels.
1391
1384
1392
1385
Returns
1393
1386
-------
1394
1387
locs
1395
- An array of label locations.
1388
+ The list of xtick locations.
1396
1389
labels
1397
- A list of `.Text` objects.
1390
+ The list of xlabel `.Text` objects.
1398
1391
1399
1392
Notes
1400
1393
-----
@@ -1446,30 +1439,23 @@ def xticks(ticks=None, labels=None, **kwargs):
1446
1439
def yticks (ticks = None , labels = None , ** kwargs ):
1447
1440
"""
1448
1441
Get or set the current tick locations and labels of the y-axis.
1449
-
1450
- Call signatures::
1451
-
1452
- locs, labels = yticks() # Get locations and labels
1453
- yticks(ticks, [labels], **kwargs) # Set locations and labels
1442
+ Pass no arguments to return the current values without modifying them.
1454
1443
1455
1444
Parameters
1456
1445
----------
1457
- ticks : array-like
1458
- A list of positions at which ticks should be placed. You can pass an
1459
- empty list to disable yticks.
1460
-
1446
+ ticks : array-like, optional
1447
+ The list of xtick locations. Passing an empty list removes all xticks.
1461
1448
labels : array-like, optional
1462
- A list of explicit labels to place at the given *locs*.
1463
-
1449
+ The labels to place at the given *locs*.
1464
1450
**kwargs
1465
1451
`.Text` properties can be used to control the appearance of the labels.
1466
1452
1467
1453
Returns
1468
1454
-------
1469
1455
locs
1470
- An array of label locations.
1456
+ The list of ytick locations.
1471
1457
labels
1472
- A list of `.Text` objects.
1458
+ The list of ylabel `.Text` objects.
1473
1459
1474
1460
Notes
1475
1461
-----
0 commit comments