remove const in ORCA
This commit is contained in:
parent
4d94725797
commit
577acbdeb6
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user