Plots.jl/test/surfacetest.jl
2017-01-08 14:36:36 -08:00

15 lines
265 B
Julia

module SurfacePlotsTests
using Plots
plotlyjs();
m=32; n=5;
r = (0:m)/m
theta = reshape(pi*(-n*m:n*m)/m, 1, 2*n*m+1)
z = r * exp(im*theta)
s = r.^(1/n) * exp(im*theta/n)
x = real(z)
y = imag(z)
u = real(s)
v = imag(s)
surface(x,y,u,surfacecolor=randn(size(v)))
end