Skip to content

Commit adb4d87

Browse files
committed
FIX: str method for SymmetricalLogTransform
1 parent e4ce92f commit adb4d87

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/scale.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ def inverted(self):
327327
return InvertedSymmetricalLogTransform(self.base, self.linthresh,
328328
self.linscale)
329329

330+
def __str__(self):
331+
return "{}".format(type(self).__name__)
332+
330333

331334
class InvertedSymmetricalLogTransform(Transform):
332335
input_dims = 1
@@ -359,6 +362,9 @@ def inverted(self):
359362
return SymmetricalLogTransform(self.base,
360363
self.linthresh, self.linscale)
361364

365+
def __str__(self):
366+
return "{}".format(type(self).__name__)
367+
362368

363369
class SymmetricalLogScale(ScaleBase):
364370
"""

0 commit comments

Comments
 (0)