Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

invert colormap in mlab

I simply want to know how to invert a colormap in mlab. I know in matplotlib you can simply add _r to the name of the colormap to invert the color scheme. However it appears to be slightly different in mlab. Does anyone know how this can be achieved?

like image 371
user1750948 Avatar asked Dec 06 '22 09:12

user1750948


1 Answers

Using the script recording of the mayavi pipeline, I found :

s.module_manager.scalar_lut_manager.reverse_lut = True
like image 110
recursix Avatar answered Jan 11 '23 03:01

recursix