From 3513754647b2a2de2ef1f11413dd859c58719508 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sat, 27 Jun 2020 20:17:48 +0200 Subject: [PATCH] low/high instead of left/right --- python/damask/_colormap.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python/damask/_colormap.py b/python/damask/_colormap.py index a0c976516..39a86cc8f 100644 --- a/python/damask/_colormap.py +++ b/python/damask/_colormap.py @@ -121,7 +121,7 @@ class Colormap(mpl.colors.ListedColormap): # DAMASK presets definition = Colormap._predefined_DAMASK[name] - return Colormap.from_bounds(definition['left'],definition['right'],name,N) + return Colormap.from_bounds(definition['low'],definition['high'],name,N) @staticmethod @@ -316,12 +316,12 @@ class Colormap(mpl.colors.ListedColormap): 'gnuplot', 'gnuplot2', 'CMRmap', 'cubehelix', 'brg', 'gist_rainbow', 'rainbow', 'jet', 'nipy_spectral', 'gist_ncar'])] - _predefined_DAMASK = {'orientation': {'low': [0.933334,0.878432,0.878431], - 'right': [0.250980,0.007843,0.000000]}, - 'strain': {'left': [0.941177,0.941177,0.870588], - 'right': [0.266667,0.266667,0.000000]}, - 'stress': {'left': [0.878432,0.874511,0.949019], - 'right': [0.000002,0.000000,0.286275]}} + _predefined_DAMASK = {'orientation': {'low': [0.933334,0.878432,0.878431], + 'high': [0.250980,0.007843,0.000000]}, + 'strain': {'low': [0.941177,0.941177,0.870588], + 'high': [0.266667,0.266667,0.000000]}, + 'stress': {'low': [0.878432,0.874511,0.949019], + 'high': [0.000002,0.000000,0.286275]}} @staticmethod def _hsv2rgb(hsv):