Julia中外推匿名函数的等高线图

Julia中外推匿名函数的等高线图,julia,interpolation,contour,extrapolation,Julia,Interpolation,Contour,Extrapolation,我在Julia中创建了一个64x64随机2D数组,然后使用插值对其进行插值。jl: using Interpolations using Plots gr() x = range(-10., length=64, stop=10.) y = range(-10., length=64, stop=10.) v_unscaled = interpolate(potential, BSpline(Cubic(Line(OnCell())))) v_scaled = Interpolations.s

我在Julia中创建了一个64x64随机2D数组,然后使用
插值对其进行插值。jl

using Interpolations
using Plots
gr()
x = range(-10., length=64, stop=10.)
y = range(-10., length=64, stop=10.)

v_unscaled = interpolate(potential, BSpline(Cubic(Line(OnCell()))))
v_scaled = Interpolations.scale(v_unscaled, x, y)
v = extrapolate(v_scaled, 0) 

p_int = contour(x, y, v_scaled, fill=true)
display(p_int)

p = contour(x, y, v, fill=true)
display(p)
当我绘制外推函数
v
时,轮廓的非零部分收缩到左下角,这与预期不符,因为在指定的域中,两个图应该看起来相同。上述程序有什么问题


您没有在示例代码中提供
潜在性
那么具体的问题最好在julialang.slack.com上回答,您可以在那里获得交互式故障排除您没有在示例代码中提供
潜在性
那么具体的问题最好在julialang.slack.com上回答,在那里您可以获得交互式故障排除