And actually this produces almost the same plot:

X = linspace(-5, 5, 100)'
Y = linspace(-5, 5, 100)
R = sqrt(X.^2 .+ Y.^2)
Z = sin(R)
surf = plot_surface(X, Y, Z, rstride=1, cstride=1, linewidth=0, 
antialiased=false, cmap="coolwarm")
colorbar(surf, shrink=0.5, aspect=5)

I don't know why the example bothered to use LinearLocator etcetera when 
they weren't actually doing much with those options.

Reply via email to