Added savefig html
This commit is contained in:
parent
2b8cc7cfde
commit
167fd68774
@ -52,6 +52,14 @@ function tex(plt::Plot, fn::AbstractString)
|
|||||||
end
|
end
|
||||||
tex(fn::AbstractString) = tex(current(), fn)
|
tex(fn::AbstractString) = tex(current(), fn)
|
||||||
|
|
||||||
|
function html(plt::Plot, fn::AbstractString)
|
||||||
|
fn = addExtension(fn, "html")
|
||||||
|
io = open(fn, "w")
|
||||||
|
show(io, MIME("text/html"), plt)
|
||||||
|
close(io)
|
||||||
|
end
|
||||||
|
html(fn::AbstractString) = html(current(), fn)
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
|
|
||||||
@ -63,6 +71,7 @@ const _savemap = Dict(
|
|||||||
"ps" => ps,
|
"ps" => ps,
|
||||||
"eps" => eps,
|
"eps" => eps,
|
||||||
"tex" => tex,
|
"tex" => tex,
|
||||||
|
"html" => html,
|
||||||
)
|
)
|
||||||
|
|
||||||
function getExtension(fn::AbstractString)
|
function getExtension(fn::AbstractString)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user