corrections proposed by @BeastyBlacksmith

This commit is contained in:
Helmut Haensel 2020-05-20 14:31:17 +02:00
parent 2722c70d30
commit ce20b38702
2 changed files with 2 additions and 4 deletions

View File

@ -374,7 +374,6 @@ function _initialize_backend(pkg::PlotlyBackend)
catch catch
@info "For saving to png with the Plotly backend ORCA has to be installed." @info "For saving to png with the Plotly backend ORCA has to be installed."
end end
push!(_plot_defaults, :include_mathjax => "")
end end
const _plotly_attr = merge_with_base_supported([ const _plotly_attr = merge_with_base_supported([
@ -418,7 +417,6 @@ const _plotly_attr = merge_with_base_supported([
:tick_direction, :tick_direction,
:camera, :camera,
:contour_labels, :contour_labels,
:include_mathjax,
]) ])
const _plotly_seriestype = [ const _plotly_seriestype = [

View File

@ -814,9 +814,9 @@ function plotly_html_head(plt::Plot)
plotly = plotly =
use_local_dependencies[] ? local_file : "https://cdn.plot.ly/plotly-latest.min.js" use_local_dependencies[] ? local_file : "https://cdn.plot.ly/plotly-latest.min.js"
include_mathjax = get(plt.attr, :include_mathjax, "") include_mathjax = get(plt[:extra_plot_kwargs], :include_mathjax, "")
mathjax_file = include_mathjax != "cdn" ? ("file://" * include_mathjax) : "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML" mathjax_file = include_mathjax != "cdn" ? ("file://" * include_mathjax) : "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"
mathjax_head = include_mathjax == "" ? "" : "<script async src=\"$mathjax_file\"></script>\n\t\t" mathjax_head = include_mathjax == "" ? "" : "<script src=\"$mathjax_file\"></script>\n\t\t"
if isijulia() && !ijulia_initialized[] if isijulia() && !ijulia_initialized[]
# using requirejs seems to be key to load a js depency in IJulia! # using requirejs seems to be key to load a js depency in IJulia!