Recently I am interested in the data visualization and I have try different plots. Previously in my research work I ploted a 3d contour figure via MATLAB. Since the frequently used Python package Matplotlib has poor support on this kind of 3d data visualization. I also tried the Mayavi package before and I didn’t learn it well.
After reading a lot of examples I begin to control the skill of using Mayavi. I try to replot the original plots via python.
Here is the process. We first need import the necessary package
1 2
import numpy as np from mayavi import mlab
Then the 3d data should be prepared. The data are calculated via parameter sweep and store with txt format. We need load it