Dear all,
I have the code:
using Gaston
X = LinRange(-1,1, 30) # 50
Y = LinRange(-1,1, 30)
x = [u for u in X, v in Y]
y = [v for u in X, v in Y]
z = [u^2+v^2 for u in X, v in Y]
#
surf(x, y, z, w = :l, lc = :turquoise,
Axes(xlabel = :x, ylabel = :y, zlabel = :z,zrange= "[*<0:1<*]",xrange= "[*<-1:1<*]",yrange= "[*<-1:1<*]",
#view= "60, 45, 1, 1",
xtics = """("-0.5" -0.5, "0.0" 0, "+0.5" 0.5) offset .25,-0.5""",
ytics = """("-0.5" -0.5, "0.0" 0, "+0.5" 0.5) offset -1.25,-0.5""",
view = "75, 30, 0.7, 2.1",
size = "1.1,1.",
xyplane = "at 0",
#pm3d = "depthorder",
hidden3d = :on,
key = :off))
Supose that I want to draw this surface in a nonrectangular domain, eg, for all u \in [-1,1] and 0 \leq v \leq 1-u. How can I adapt the code above?