added method to invert colormap
This commit is contained in:
parent
d01a8bdf8c
commit
4fda285e08
|
@ -310,6 +310,14 @@ class Colormap():
|
||||||
self.right = right.expressAs('MSH')
|
self.right = right.expressAs('MSH')
|
||||||
|
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------
|
||||||
|
def invert(self):
|
||||||
|
temp = self.left
|
||||||
|
self.left = self.right
|
||||||
|
self.right = temp
|
||||||
|
return self
|
||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------
|
# ------------------------------------------------------------------
|
||||||
def export(self,name = 'uniformPerceptualColorMap',\
|
def export(self,name = 'uniformPerceptualColorMap',\
|
||||||
format = 'paraview',\
|
format = 'paraview',\
|
||||||
|
|
Loading…
Reference in New Issue