8000 Fix backend in matplotlibrc if unset in mplsetup.cfg · matplotlib/matplotlib@40fb776 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40fb776

Browse files
committed
Fix backend in matplotlibrc if unset in mplsetup.cfg
As reported in #21660 (comment)
1 parent 96ddc67 commit 40fb776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def update_matplotlibrc(path):
201201
template_lines[backend_line_idx] = (
202202
"#backend: {}\n".format(setupext.options["backend"])
203203
if setupext.options["backend"]
204-
else "##backend: Agg")
204+
else "##backend: Agg\n")
205205
path.write_text("".join(template_lines))
206206

207207

0 commit comments

Comments
 (0)
0