Update output.jl
This commit is contained in:
parent
2c3f79783d
commit
ee2646b565
@ -45,6 +45,7 @@ end
|
|||||||
eps(fn::AbstractString) = eps(current(), fn)
|
eps(fn::AbstractString) = eps(current(), fn)
|
||||||
|
|
||||||
function tex(plt::Plot, fn::AbstractString)
|
function tex(plt::Plot, fn::AbstractString)
|
||||||
|
fn = addExtension(fn, "tex")
|
||||||
io = open(fn, "w")
|
io = open(fn, "w")
|
||||||
show(io, MIME("application/x-tex"), plt)
|
show(io, MIME("application/x-tex"), plt)
|
||||||
close(io)
|
close(io)
|
||||||
@ -102,7 +103,7 @@ end
|
|||||||
function addExtension(fn::AbstractString, ext::AbstractString)
|
function addExtension(fn::AbstractString, ext::AbstractString)
|
||||||
try
|
try
|
||||||
oldext = getExtension(fn)
|
oldext = getExtension(fn)
|
||||||
if oldext == ext
|
if _savemap[oldext] == ext
|
||||||
return fn
|
return fn
|
||||||
else
|
else
|
||||||
return "$fn.$ext"
|
return "$fn.$ext"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user