Remove hanging code from saving plots.jl

pull/55/head
Matti Pastell 2016-10-31 10:37:03 +02:00
parent 68a8fbdcf4
commit 0ce73efeaa
1 changed files with 0 additions and 16 deletions

View File

@ -9,19 +9,3 @@ function plots_set_size(chunk)
end
push_preexecute_hook(plots_set_size)
function Base.display(report::Report, m::MIME"image/png", data::Plots.Plot)
Plots.gui(data) #Required for savefig to work
chunk = report.cur_chunk
full_name, rel_name = get_figname(report, chunk)
push!(report.figures, rel_name)
Plots.savefig(data, full_name)
end
function Base.display(report::Report, m::MIME"application/pdf", data::Plots.Plot)
Plots.gui(data)
chunk = report.cur_chunk
full_name, rel_name = get_figname(report, chunk)
push!(report.figures, rel_name)
Plots.savefig(data, full_name)
end