Using perceptually uniform colormaps in Mayavi volumetric visualization
问题 AFAIK Mayavi does not come with any perceptually uniform colormaps. I tried naively to just pass it one of Matplotlib's colormaps but it failed: from mayavi import mlab import multiprocessing import matplotlib.pyplot as plt plasma = plt.get_cmap('plasma') ... mlab.pipeline.volume(..., colormap=plasma) TraitError: Cannot set the undefined 'colormap' attribute of a 'VolumeFactory' object. Edit: I found a guide to convert Matplotlib colormaps to Mayavi colormaps. However, it unfortunately doesn