You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fix in this case is setting axis = (; type = LScene).
Minimal Reproducible Example 👇
Without MRE, we would only be able to help you to a limited extent, and attention to the issue would be limited. to know more about MRE refer to wikipedia and stackoverflow.
using DifferentialEquations
using WGLMakie
functionlorenz!(du, u, p, t)
du[1] =10.0* (u[2] - u[1])
du[2] = u[1] * (28.0- u[3]) - u[2]
du[3] = u[1] * u[2] - (8/3) * u[3]
end
u0 = [1.0; 0.0; 0.0]
tspan = (0.0, 100.0)
prob =ODEProblem(lorenz!, u0, tspan)
sol =solve(prob)
# this results in a 2D plot
fig, ax, plt =lines(
sol; idxs = (1, 2, 3),
plotdensity =10000,
color =1:10000,
colormap =:plasma,
transparency =true
)
# this works, provides a proper 3D plot # fig, ax, plt = lines(# sol; idxs = (1, 2, 3), # axis = (; type = LScene),# plotdensity = 10000, # color = 1:10000, # colormap = :plasma, # transparency = true# )# display plot display(fig)
Environment (please complete the following information):
Describe the bug 🐞
When I plot the output of a system in 3D I use the following syntax, which makes use of this recipe:
This should produce a 3D plot, but instead results in:
Overview of Makie recipes
See this thread for further reference
Expected behavior
It should produce a 3D plot like such:
The fix in this case is setting
axis = (; type = LScene)
.Minimal Reproducible Example 👇
Without MRE, we would only be able to help you to a limited extent, and attention to the issue would be limited. to know more about MRE refer to wikipedia and stackoverflow.
Environment (please complete the following information):
using Pkg; Pkg.status()
Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
versioninfo()
The text was updated successfully, but these errors were encountered: