Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 593ff96

Browse files
authored
Merge pull request #22469 from anntzer/mathtextlistrepr
Improve readability of mathtext internal structures.
2 parents b52b2a0 + d7a229a commit 593ff96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,11 +1236,11 @@ def __init__(self, elements):
12361236
self.glue_order = 0 # The order of infinity (0 - 3) for the glue
12371237

12381238
def __repr__(self):
1239-
return '[%s <%.02f %.02f %.02f %.02f> %s]' % (
1239+
return '%s<w=%.02f h=%.02f d=%.02f s=%.02f>[%s]' % (
12401240
super().__repr__(),
12411241
self.width, self.height,
12421242
self.depth, self.shift_amount,
1243-
' '.join([repr(x) for x in self.children]))
1243+
', '.join([repr(x) for x in self.children]))
12441244

12451245
@staticmethod
12461246
def _determine_order(totals):

0 commit comments

Comments
 (0)