make plotlyjs use html in ijulia
This commit is contained in:
parent
046985277d
commit
b9d586c009
@ -171,7 +171,8 @@ const _mimeformats = Dict(
|
|||||||
const _best_html_output_type = KW(
|
const _best_html_output_type = KW(
|
||||||
:pyplot => :png,
|
:pyplot => :png,
|
||||||
:unicodeplots => :txt,
|
:unicodeplots => :txt,
|
||||||
:glvisualize => :png
|
:glvisualize => :png,
|
||||||
|
:plotlyjs => :html
|
||||||
)
|
)
|
||||||
|
|
||||||
# a backup for html... passes to svg or png depending on the html_output_format arg
|
# a backup for html... passes to svg or png depending on the html_output_format arg
|
||||||
@ -270,6 +271,9 @@ end
|
|||||||
elseif output_type == :svg
|
elseif output_type == :svg
|
||||||
mime = "image/svg+xml"
|
mime = "image/svg+xml"
|
||||||
Dict{String,String}(mime => sprint(show, MIME(mime), plt))
|
Dict{String,String}(mime => sprint(show, MIME(mime), plt))
|
||||||
|
elseif output_type == :html
|
||||||
|
mime = "text/html"
|
||||||
|
Dict{String,String}(mime => sprint(show, MIME(mime), plt))
|
||||||
else
|
else
|
||||||
error("Unsupported output type $output_type")
|
error("Unsupported output type $output_type")
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user