plotly_data for Surface; improve add_backend(:plotlyjs)
This commit is contained in:
parent
2bde412fa3
commit
17afa11723
@ -338,6 +338,7 @@ function plotly_close_shapes(x, y)
|
|||||||
end
|
end
|
||||||
|
|
||||||
plotly_data(v) = collect(v)
|
plotly_data(v) = collect(v)
|
||||||
|
plotly_data(surf::Surface) = surf.surf
|
||||||
plotly_data{R<:Rational}(v::AbstractArray{R}) = float(v)
|
plotly_data{R<:Rational}(v::AbstractArray{R}) = float(v)
|
||||||
|
|
||||||
# get a dictionary representing the series params (d is the Plots-dict, d_out is the Plotly-dict)
|
# get a dictionary representing the series params (d is the Plots-dict, d_out is the Plotly-dict)
|
||||||
|
|||||||
@ -13,10 +13,12 @@ const _plotlyjs_scale = _plotly_scale
|
|||||||
function add_backend(::PlotlyJSBackend)
|
function add_backend(::PlotlyJSBackend)
|
||||||
if !is_installed("PlotlyJS")
|
if !is_installed("PlotlyJS")
|
||||||
Pkg.add("PlotlyJS")
|
Pkg.add("PlotlyJS")
|
||||||
@eval import Blink
|
end
|
||||||
Blink.AtomShell.install()
|
if !is_installed("Rsvg")
|
||||||
Pkg.add("Rsvg")
|
Pkg.add("Rsvg")
|
||||||
end
|
end
|
||||||
|
@eval import Blink
|
||||||
|
Blink.AtomShell.install()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user