remove const in plotlyjs
This commit is contained in:
parent
275738e7ea
commit
5132bebc7f
@ -19,14 +19,12 @@ end
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
const _plotlyjs_mimeformats = Dict(
|
||||
for (mime, fmt) in (
|
||||
"application/pdf" => "pdf",
|
||||
"image/png" => "png",
|
||||
"image/svg+xml" => "svg",
|
||||
"image/eps" => "eps",
|
||||
)
|
||||
|
||||
for (mime, fmt) in _plotlyjs_mimeformats
|
||||
@eval _show(io::IO, ::MIME{Symbol($mime)}, plt::Plot{PlotlyJSBackend}) = PlotlyJS.savefig(io, plotlyjs_syncplot(plt), format = $fmt)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user