Mandelbrot ContoursΒΆ

../../_images/mand_contours1.png

This is simply a one line change to the script from Datagrid Alternative to Image Construction. The line adding the surface to the axes was replaced by:

ax.add_collection3d(surface.contourLineSet(10).fade(0,75,-70))

Contours may be created from any surface already constructed using the color of the surface. Surface shading and highlighting is incorporated into the contour coloring.

Note

This is a special case where the contours are created after the surface is clipped. Usually, contours must be constructed before the surface is clipped. However, in this case, faces were removed which did not intersect with the contour lines set.