Merge bbd3a4f92ffe34575f03c56b58e4e6e46d301a45 into b254aaa08177dd24f15450a4719e4a5a98507788
This commit is contained in:
commit
b27781bdca
@ -62,8 +62,14 @@ export
|
|||||||
ylims,
|
ylims,
|
||||||
zlims,
|
zlims,
|
||||||
|
|
||||||
|
# output.jl
|
||||||
savefig,
|
savefig,
|
||||||
png,
|
png,
|
||||||
|
save_png,
|
||||||
|
save_svg,
|
||||||
|
save_pdf,
|
||||||
|
save_ps,
|
||||||
|
save_eps,
|
||||||
gui,
|
gui,
|
||||||
inline,
|
inline,
|
||||||
closeall,
|
closeall,
|
||||||
|
|||||||
@ -9,6 +9,8 @@ function png(plt::Plot, fn::AbstractString)
|
|||||||
close(io)
|
close(io)
|
||||||
end
|
end
|
||||||
png(fn::AbstractString) = png(current(), fn)
|
png(fn::AbstractString) = png(current(), fn)
|
||||||
|
save_png(plt::Plot, fn::AbstractString) = png(plt::Plot, fn::AbstractString)
|
||||||
|
save_png(fn::AbstractString) = png(current(), fn)
|
||||||
|
|
||||||
function svg(plt::Plot, fn::AbstractString)
|
function svg(plt::Plot, fn::AbstractString)
|
||||||
fn = addExtension(fn, "svg")
|
fn = addExtension(fn, "svg")
|
||||||
@ -17,6 +19,8 @@ function svg(plt::Plot, fn::AbstractString)
|
|||||||
close(io)
|
close(io)
|
||||||
end
|
end
|
||||||
svg(fn::AbstractString) = svg(current(), fn)
|
svg(fn::AbstractString) = svg(current(), fn)
|
||||||
|
save_svg(plt::Plot, fn::AbstractString) = svg(plt::Plot, fn::AbstractString)
|
||||||
|
save_svg(fn::AbstractString) = svg(current(), fn)
|
||||||
|
|
||||||
|
|
||||||
function pdf(plt::Plot, fn::AbstractString)
|
function pdf(plt::Plot, fn::AbstractString)
|
||||||
@ -26,6 +30,8 @@ function pdf(plt::Plot, fn::AbstractString)
|
|||||||
close(io)
|
close(io)
|
||||||
end
|
end
|
||||||
pdf(fn::AbstractString) = pdf(current(), fn)
|
pdf(fn::AbstractString) = pdf(current(), fn)
|
||||||
|
save_pdf(plt::Plot, fn::AbstractString) = pdf(plt::Plot, fn::AbstractString)
|
||||||
|
save_pdf(fn::AbstractString) = pdf(current(), fn)
|
||||||
|
|
||||||
|
|
||||||
function ps(plt::Plot, fn::AbstractString)
|
function ps(plt::Plot, fn::AbstractString)
|
||||||
@ -35,6 +41,8 @@ function ps(plt::Plot, fn::AbstractString)
|
|||||||
close(io)
|
close(io)
|
||||||
end
|
end
|
||||||
ps(fn::AbstractString) = ps(current(), fn)
|
ps(fn::AbstractString) = ps(current(), fn)
|
||||||
|
save_ps(plt::Plot, fn::AbstractString) = ps(plt::Plot, fn::AbstractString)
|
||||||
|
save_ps(fn::AbstractString) = ps(current(), fn)
|
||||||
|
|
||||||
function eps(plt::Plot, fn::AbstractString)
|
function eps(plt::Plot, fn::AbstractString)
|
||||||
fn = addExtension(fn, "eps")
|
fn = addExtension(fn, "eps")
|
||||||
@ -43,6 +51,8 @@ function eps(plt::Plot, fn::AbstractString)
|
|||||||
close(io)
|
close(io)
|
||||||
end
|
end
|
||||||
eps(fn::AbstractString) = eps(current(), fn)
|
eps(fn::AbstractString) = eps(current(), fn)
|
||||||
|
save_eps(plt::Plot, fn::AbstractString) = eps(plt::Plot, fn::AbstractString)
|
||||||
|
save_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")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user