try to import ORCA on plotly initialization
This commit is contained in:
parent
a1130efa2f
commit
7e05bb0aca
@ -296,9 +296,6 @@ end
|
|||||||
|
|
||||||
_initialize_backend(pkg::GRBackend) = nothing
|
_initialize_backend(pkg::GRBackend) = nothing
|
||||||
|
|
||||||
_initialize_backend(pkg::PlotlyBackend) = nothing
|
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# gr
|
# gr
|
||||||
|
|
||||||
@ -357,6 +354,16 @@ is_marker_supported(::GRBackend, shape::Shape) = true
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# plotly
|
# plotly
|
||||||
|
|
||||||
|
function _initialize_backend(pkg::PlotlyBackend)
|
||||||
|
try
|
||||||
|
@eval Main begin
|
||||||
|
import ORCA
|
||||||
|
end
|
||||||
|
catch
|
||||||
|
@info "For saving to png with the Plotly backend ORCA has to be installed."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
const _plotly_attr = merge_with_base_supported([
|
const _plotly_attr = merge_with_base_supported([
|
||||||
:annotations,
|
:annotations,
|
||||||
:background_color_legend, :background_color_inside, :background_color_outside,
|
:background_color_legend, :background_color_inside, :background_color_outside,
|
||||||
|
|||||||
@ -26,7 +26,6 @@ const plotly_remote_file_path = "https://cdn.plot.ly/plotly-latest.min.js"
|
|||||||
# end
|
# end
|
||||||
using UUIDs
|
using UUIDs
|
||||||
|
|
||||||
push!(_initialized_backends, :plotly)
|
|
||||||
# ----------------------------------------------------------------
|
# ----------------------------------------------------------------
|
||||||
|
|
||||||
const _plotly_legend_pos = KW(
|
const _plotly_legend_pos = KW(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user