I would like to use a colormap from matplotlib which is not integrated on mayavi, for printing some 3D figures. The colormap in question is "cividis" and, after trying many different things, I'me not able to do it. What I need is to have that colormap available for plotting a mlab.mesh
Any help is welcome! Thanks
I just had a very similar problem but with
plot3d
, and found a couple of links useful: https://gist.github.com/scholich/a1b0142acfbad4420575 and https://docs.enthought.com/mayavi/mayavi/auto/example_custom_colormap.htmlMy solution looked like this:
Hopefully this will help you.