Skip to content

Commit

Permalink
add svg+xml generation to precompile setup (#4682)
Browse files Browse the repository at this point in the history
  • Loading branch information
oschulz committed Mar 5, 2023
1 parent bd717b1 commit 511784f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/init.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ include(_path(backend_name()))
end
showable(MIME"image/png"(), pl) && savefig(pl, "$fn.png")
showable(MIME"application/pdf"(), pl) && savefig(pl, "$fn.pdf")
if showable(MIME"image/svg+xml"(), pl)
show(IOBuffer(), MIME"image/svg+xml"(), pl)
end
nothing
end
$func()
Expand Down

0 comments on commit 511784f

Please sign in to comment.