mirror of https://github.com/mpastell/Weave.jl
Remove hanging code from saving plots.jl
parent
68a8fbdcf4
commit
0ce73efeaa
16
src/plots.jl
16
src/plots.jl
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue