remove const in ORCA

This commit is contained in:
Daniel Schwabeneder 2020-04-26 19:38:47 +02:00
parent 4d94725797
commit 577acbdeb6

View File

@ -12,13 +12,12 @@ function plotlybase_syncplot(plt::Plot)
return plt.o return plt.o
end end
const _orca_mimeformats = Dict( for (mime, fmt) in (
"application/pdf" => "pdf", "application/pdf" => "pdf",
"image/png" => "png", "image/png" => "png",
"image/svg+xml" => "svg", "image/svg+xml" => "svg",
"image/eps" => "eps", "image/eps" => "eps",
) )
@eval _show(io::IO, ::MIME{Symbol($mime)}, plt::Plot{PlotlyBackend}) =
for (mime, fmt) in _orca_mimeformats ORCA.PlotlyBase.savefig(io, plotlybase_syncplot(plt), format = $fmt)
@eval _show(io::IO, ::MIME{Symbol($mime)}, plt::Plot{PlotlyBackend}) = ORCA.PlotlyBase.savefig(io, plotlybase_syncplot(plt), format = $fmt)
end end