Open essenciary opened 3 years ago
using Plots gr() f(x, p) = sin(x) + cos(p) function gen_data(n::Float64) x_range = -10:0.1:10 y_range = -3:0.1:3 xs = Float64[] ys = Float64[] zs = Float64[] for x in x_range, y in y_range push!(xs, x) push!(ys, y) push!(zs, f(n*x, n*y)) end return xs, ys, zs end xs, ys, zs = gen_data(0.3) p = surface(xs, ys, zs)
Maybe WGLMakie
This might work. I'll give it a try