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

Skip to content

Commit 861d0c0

Browse files
committed
FIX: invalid escapes in backend_pgf
1 parent 4e8c7fe commit 861d0c0

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
@@ -137,7 +137,7 @@ def common_texification(text):
137137

138138

139139
def writeln(fh, line):
140-
# every line of a file included with \input must be terminated with %
140+
# every line of a file included with \\input must be terminated with %
141141
# if not, latex will create additional vertical spaces for some reason
142142
fh.write(line)
143143
fh.write("%\n")
@@ -782,7 +782,7 @@ def _print_pgf_to_fh(self, fh, *args, **kwargs):
782782
%% Make sure the required packages are loaded in your preamble
783783
%% \\usepackage{pgf}
784784
%%
785-
%% Figures using additional raster images can only be included by \input if
785+
%% Figures using additional raster images can only be included by \\input if
786786
%% they are in the same directory as the main LaTeX file. For loading figures
787787
%% from other directories you can use the `import` package
788788
%% \\usepackage{import}

0 commit comments

Comments
 (0)