diff --git a/python/damask/_colormap.py b/python/damask/_colormap.py index 964f22d85..2533d4d36 100644 --- a/python/damask/_colormap.py +++ b/python/damask/_colormap.py @@ -24,6 +24,10 @@ class Colormap(mpl.colors.ListedColormap): return Colormap(np.vstack((self.colors,other.colors)), f'{self.name}+{other.name}') + def __invert__(self): + """Return inverted colormap.""" + return self.reversed() + @staticmethod def from_range(low,high,name='DAMASK colormap',N=256,model='rgb'): """