我有一个用滑块创建绘图的函数。该代码基于本 Makie 教程中的第一个示例
function plotLaneEmden(log_delta_xi=-4, n=3)
fig = Figure()
ax = Axis(fig[1, 1])
sl_x = Slider(fig[2, 1], range = 0:0.01:4.99, startvalue = 3)
sl_y = Slider(fig[1, 2], range = -6:0.01:0.1, horizontal = false, startvalue = -2)
point = lift(sl_x.value, sl_y.value) do n, log_delta_xi
Point2f(n, log_delta_xi)
end
plot(n, 1 .- log_delta_xi.^2/6, linecolor = :green, label="n = $n")
xlabel!("ξ")
ylabel!("θ")
end
我收到错误和警告消息:
WARNING: both GLMakie and Plots export "ylabel!"; uses of it in module Main must be qualified
WARNING: both GLMakie and Plots export "xlabel!"; uses of it in module Main must be qualified
WARNING: both GLMakie and Plots export "plot"; uses of it in module Main must be qualified
UndefVarError: plot not defined
我在这里想念什么?