Add eps to savefig

This commit is contained in:
Asbjørn Nilsen Riseth 2016-08-18 15:48:47 +01:00
parent 74ec733444
commit 5c127f945f

View File

@ -36,6 +36,13 @@ function ps(plt::Plot, fn::AbstractString)
end
ps(fn::AbstractString) = ps(current(), fn)
function eps(plt::Plot, fn::AbstractString)
fn = addExtension(fn, "eps")
io = open(fn, "w")
writemime(io, MIME("image/eps"), plt)
close(io)
end
eps(fn::AbstractString) = eps(current(), fn)
function tex(plt::Plot, fn::AbstractString)
fn = addExtension(fn, "tex")
@ -54,6 +61,7 @@ const _savemap = Dict(
"svg" => svg,
"pdf" => pdf,
"ps" => ps,
"eps" => eps,
"tex" => tex,
)