fabiencasenave
commited on
Commit
•
3aabd0b
1
Parent(s):
293d112
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def sample_info(sample_id_str, fieldn):
|
|
52 |
# generate colormap
|
53 |
if np.linalg.norm(field) > 0:
|
54 |
norm = mpl.colors.Normalize(vmin=np.min(field), vmax=np.max(field))
|
55 |
-
cmap = cm.
|
56 |
m = cm.ScalarMappable(norm=norm, cmap=cmap)
|
57 |
|
58 |
vertex_colors = m.to_rgba(field)[:,:3]
|
@@ -77,7 +77,7 @@ def sample_info(sample_id_str, fieldn):
|
|
77 |
|
78 |
scene.add(camera, pose=[[ 1, 0, 0, 0.5],
|
79 |
[ 0, 1, 0, 0],
|
80 |
-
[ 0, 0, 1,
|
81 |
[ 0, 0, 0, 1]])
|
82 |
|
83 |
# render scene
|
|
|
52 |
# generate colormap
|
53 |
if np.linalg.norm(field) > 0:
|
54 |
norm = mpl.colors.Normalize(vmin=np.min(field), vmax=np.max(field))
|
55 |
+
cmap = cm.seismic#cm.coolwarm
|
56 |
m = cm.ScalarMappable(norm=norm, cmap=cmap)
|
57 |
|
58 |
vertex_colors = m.to_rgba(field)[:,:3]
|
|
|
77 |
|
78 |
scene.add(camera, pose=[[ 1, 0, 0, 0.5],
|
79 |
[ 0, 1, 0, 0],
|
80 |
+
[ 0, 0, 1, 6],
|
81 |
[ 0, 0, 0, 1]])
|
82 |
|
83 |
# render scene
|