tchange default color map - sphere - GPU-based 3D discrete element method algor… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 5cf8cf60ab4e8fe6aff991a2b56ea3ac01fa0ae9 | |
parent 7d1d52e4c892231f8481a147838f6c3f6550c4a2 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 9 Jan 2015 15:08:12 +0100 | |
change default color map | |
Diffstat: | |
M python/sphere.py | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -5787,8 +5787,8 @@ class sim: | |
p_ext = numpy.max(numpy.abs(pres)) | |
im1 = ax.pcolormesh(t, zpos_c, pres, | |
- #cmap=matplotlib.cm.get_cmap('bwr'), | |
- cmap=matplotlib.cm.get_cmap('coolwarm'), | |
+ cmap=matplotlib.cm.get_cmap('bwr'), | |
+ #cmap=matplotlib.cm.get_cmap('coolwarm'), | |
vmin=-p_ext, vmax=p_ext, | |
rasterized=True) | |
#ax.set_xlim([0, numpy.max(shear_strain)]) |