Changeset 19839
- Timestamp:
- 11/30/15 18:25:16 (9 years ago)
- Location:
- issm/trunk-jpl/src/m/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_unit.js
r19826 r19839 108 108 109 109 vertices.itemSize = 3; 110 var cmap=options.getfieldvalue('cmap','rainbow'); 110 111 for(var i = 0; i < x.length; i++){ 111 112 vertices[vertices.length] = x[i]; … … 114 115 115 116 //handle mesh/qinterest size mismatch 116 rgbcolor = rgb(data[i], datamin, datamax );117 rgbcolor = rgb(data[i], datamin, datamax,cmap); 117 118 colors[colors.length] = rgbcolor[0]; 118 119 colors[colors.length] = rgbcolor[1]; -
issm/trunk-jpl/src/m/plot/webgl.js
r19820 r19839 116 116 return modelMatrix; 117 117 } //}}} 118 function rgb(value, min, max ) { //{{{118 function rgb(value, min, max,cmap) { //{{{ 119 119 120 120 var normalizedValue; 121 121 122 colorbar=colorbars[ "rainbow"];122 colorbar=colorbars[cmap]; 123 123 124 124 value = clamp(value, min, max);
Note:
See TracChangeset
for help on using the changeset viewer.