Skip to content

Commit d3510c5

Browse files
committed
Fix width/height inversion in dviread debug helper.
`python -mmatplotlib.dviread` is useful to verify how matplotlib parses dvi constructs, but the output inverted the width and height of boxes.
1 parent 037fcca commit d3510c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/dviread.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,6 @@ def _fontfile(cls, suffix, texname):
11481148
else ".",
11491149
text.width, sep="\t")
11501150
if page.boxes:
1151-
print("x", "y", "w", "h", "", "(boxes)", sep="\t")
1152-
for x, y, w, h in page.boxes:
1153-
print(x, y, w, h, sep="\t")
1151+
print("x", "y", "h", "w", "", "(boxes)", sep="\t")
1152+
for box in page.boxes:
1153+
print(box.x, box.y, box.height, box.width, sep="\t")

0 commit comments

Comments
 (0)