Python and Matplotlib Essentials for Scientists and ...

A Mayavi figure of points on a 3D mesh. Python and Matplotlib Essentials for Scientists and Engineers 12-5. argument scalars=r instructs Mayavi to use the r values to scale the color map on the surface (see figure 12.4): from numpy import pi, cos, sin, sqrt, mgrid from mayavi import mlab ................
................