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