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.
1 parent 30c3d78 commit a8310dcCopy full SHA for a8310dc
1 file changed
lib/matplotlib/ticker.py
@@ -388,6 +388,12 @@ class StrMethodFormatter(Formatter):
388
It is typically unnecessary to explicitly construct `.StrMethodFormatter`
389
objects, as `~.Axis.set_major_formatter` directly accepts the format string
390
itself.
391
+
392
+ Examples
393
+ --------
394
+ >>> formatter = StrMethodFormatter("{x} km")
395
+ >>> formatter(10)
396
+ "10 km"
397
"""
398
399
def __init__(self, fmt):
0 commit comments