Exporting figures to static HTML

Awesome! BTW: you can plot the ODE solution directly, via:

fig, ax, plt = lines(sol; idxs = (1, 2, 3), axis = (; type = Axis3), plotdensity = 10000, color = 1:10000, colormap = :plasma, transparency = true)
1 Like

thanks!

Thanks, I tried that, but for some odd reason I then lose the interactivity.

because it changes the axis type, which isnā€™t implemented in jsā€¦ if you remove that it should be back.

Like this?

prob = ODEProblem(lorenz!, u0, tspan)
sol = solve(prob)
  
fig, ax, plt = lines(
    sol; idxs = (1, 2, 3), 
    plotdensity = 10000, 
    color = 1:10000, 
    colormap = :plasma, 
    transparency = true
)

Then it becomes 2D and and the interactivity is still lost :joy:

Oh, I guess recognizing the 3d output isnā€™t implemented for that recipe.
Youā€™ll need axis = (; type = LScene).

Maybe worth opening an issue referencing:

Makie.preferred_axis_type(plot::MyPlot)

1 Like

That works great!

That would be an issue in the Makie.jl repository?

No, wherever the ODEProblem recipes live.

Seems to be here?

If itā€™s as simple as adding Makie.preferred_axis_type(plot::MyPlot) I could make a PR for that.

1 Like

The issue here is that we return a PlotSpecā€¦so args_preferred_axis doesnā€™t work.

Ok Iā€™ll just make the issue then

For reference: Makie recipe does not support 3D output Ā· Issue #947 Ā· SciML/SciMLBase.jl Ā· GitHub