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 30c3d78 + a8310dc commit 4859b75Copy full SHA for 4859b75
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