Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c7c135 commit 8bfe11eCopy full SHA for 8bfe11e
1 file changed
lib/matplotlib/backends/backend_pgf.py
@@ -1108,7 +1108,7 @@ def close(self):
1108
Finalize this object, running LaTeX in a temporary directory
1109
and moving the final pdf file to `filename`.
1110
"""
1111
- self._file.write(r'\end{document}'.encode('utf-8') + b'\n')
+ self._file.write(rb'\end{document}\n')
1112
self._file.close()
1113
1114
if self._n_figures > 0:
0 commit comments