8000 Merge pull request #23087 from anntzer/dviwh · matplotlib/matplotlib@b5fc36e · GitHub
[go: up one dir, main page]

Skip to content

Commit b5fc36e

Browse files
authored
Merge pull request #23087 from anntzer/dviwh
Fix width/height inversion in dviread debug helper.
2 parents ecce9ae + d3510c5 commit b5fc36e

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)
0