Merge pull request #450 from anriseth/anriseth/saveeps
Add eps to savefig
This commit is contained in:
commit
959da6c5ae
@ -36,6 +36,13 @@ function ps(plt::Plot, fn::AbstractString)
|
|||||||
end
|
end
|
||||||
ps(fn::AbstractString) = ps(current(), fn)
|
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)
|
function tex(plt::Plot, fn::AbstractString)
|
||||||
fn = addExtension(fn, "tex")
|
fn = addExtension(fn, "tex")
|
||||||
@ -54,6 +61,7 @@ const _savemap = Dict(
|
|||||||
"svg" => svg,
|
"svg" => svg,
|
||||||
"pdf" => pdf,
|
"pdf" => pdf,
|
||||||
"ps" => ps,
|
"ps" => ps,
|
||||||
|
"eps" => eps,
|
||||||
"tex" => tex,
|
"tex" => tex,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user