diff --git a/lib/matplotlib/scale.py b/lib/matplotlib/scale.py index a63ef7c485d8..9010e15a6f6a 100644 --- a/lib/matplotlib/scale.py +++ b/lib/matplotlib/scale.py @@ -327,6 +327,9 @@ def inverted(self): return InvertedSymmetricalLogTransform(self.base, self.linthresh, self.linscale) + def __str__(self): + return "{}".format(type(self).__name__) + class InvertedSymmetricalLogTransform(Transform): input_dims = 1 @@ -359,6 +362,9 @@ def inverted(self): return SymmetricalLogTransform(self.base, self.linthresh, self.linscale) + def __str__(self): + return "{}".format(type(self).__name__) + class SymmetricalLogScale(ScaleBase): """