Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d3510c5

Browse filesBrowse 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
Copy full SHA for d3510c5

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎lib/matplotlib/dviread.py

Copy file name to clipboardExpand all lines: lib/matplotlib/dviread.py
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.