Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
bdbb2923
Commit
bdbb2923
authored
Sep 07, 2018
by
Philipp Arras
Browse files
Add svg as allowed output format for nifty plots
parent
94d60caa
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/plot.py
View file @
bdbb2923
...
...
@@ -75,7 +75,7 @@ def _makeplot(name):
plt
.
close
()
return
extension
=
os
.
path
.
splitext
(
name
)[
1
]
if
extension
in
(
".pdf"
,
".png"
):
if
extension
in
(
".pdf"
,
".png"
,
".svg"
):
plt
.
savefig
(
name
)
plt
.
close
()
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment