Julia PyPlot: 3D plot surface with complexion is the norm of the surface gradient

Does anyone know how to build a 3D surface with Julia Piplot, for example, normal surface gradient like complexion?

Similar to this question for Python: Colored matplotlib plot_surface with surface gradient

+5
source share
1 answer

I saw this and I just wanted it to work. It was almost supported using Plots.jl using the PyPlot backend. I just had to change the place for the custom matplotlib shader to apply a different z-matrix.

You will notice that I am referring to the numpy gradient function (imported via PyCall) and I am wrapping the gradient matrix (G) so that it does not cut into columns. All in all ... much simpler than a python example!

Note: until I merge / tag, you will need to check the dev branch for graphs: Pkg.checkout("Plots","dev")

enter image description here

+6
source

All Articles