【发布时间】:2022-08-23 15:03:28
【问题描述】:
运行以下笔记本单元
%load_ext julia.magic
%%julia
using GLMakie
function plot_something()
odeSol(x,y) = Point(-x, 2y) # x\'(t) = -x, y\'(t) = 2y
fig = Figure(resolution =(400,400))
ax = Axis(fig)
streamplot!(ax, odeSol, -2..2, -2..2, colormap = :plasma,
gridsize= (32,32), arrow_size = 0.07)
fig[1,1] = ax
fig
end
from julia import Main
Main.show_something()
产生 `<PyCall.jlwrap Scene (400px, 400px):\' 而不是希望的数字。有什么好的修复吗?
标签: python julia jupyter makie.jl