I would like to know how may I plot the data from following code as 3D-surface?
using Plots
function f(x)
x1=x[1]
x2=x[2]
sin(x[1]) + cos(x[2])
end
#Sampling
function sam()
x = range(0, 10.0, length = 9) |> collect
y = range(0, 10.0, length = 9) |> collect
tuple = zip(x,y) |> collect
return tuple
end
xy = sam()
z = f.(xy)
plot(getindex.(xy,1),getindex.(xy,2),z)
I have tried using st=:surface in the plots() function with both gr() and pyplot() as backend but it doesn't work.
May I know how can i plot this as surface within x,y,z limits?

surface(x, y, f)