Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0073fe3 + 784e498 commit 9144412Copy full SHA for 9144412
1 file changed
lib/matplotlib/ticker.py
@@ -302,7 +302,13 @@ def _set_locator(self, locator):
302
303
class IndexFormatter(Formatter):
304
"""
305
- Format the position x to the nearest i-th label where i=int(x+0.5)
+ Format the position x to the nearest i-th label where ``i = int(x + 0.5)``.
306
+ Positions where ``i < 0`` or ``i > len(list)`` have no tick labels.
307
+
308
+ Parameters
309
+ ----------
310
+ labels : list
311
+ List of labels.
312
313
def __init__(self, labels):
314
self.labels = labels
0 commit comments