matplotlib._docstring
- class matplotlib._docstring.Substitution(*args, **kwargs)
Bases:
objectA decorator that performs %-substitution on an object's docstring.
This decorator should be robust even if
obj.__doc__is None (for example, if -OO was passed to the interpreter).Usage: construct a docstring.Substitution with a sequence or dictionary suitable for performing substitution; then decorate a suitable function with the constructed object, e.g.: