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

Skip to content

Commit 99adcf9

Browse files
committed
Clarify comment about backend_pgf.writeln.
The need for a % is not some mysterious tex thing, but a well documented behavior.
1 parent 57489bf commit 99adcf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ def common_texification(text):
116116

117117

118118
def writeln(fh, line):
119-
# every line of a file included with \\input must be terminated with %
120-
# if not, latex will create additional vertical spaces for some reason
119+
# Ending lines with a % prevents TeX from inserting spurious spaces
120+
# (https://tex.stackexchange.com/questions/7453).
121121
fh.write(line)
122122
fh.write("%\n")
123123

0 commit comments

Comments
 (0)