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

Skip to content

Commit dbb0115

Browse files
committed
TexManager: transform bytes-object to string before searching for box information
1 parent 01491c0 commit dbb0115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def make_dvi_preview(self, tex, fontsize):
459459

460460
# find the box extent information in the latex output
461461
# file and store them in ".baseline" file
462-
m = TexManager._re_vbox.search(report)
462+
m = TexManager._re_vbox.search(report.decode("utf-8"))
463463
with open(basefile + '.baseline', "w") as fh:
464464
fh.write(" ".join(m.groups()))
465465

0 commit comments

Comments
 (0)