Changeset 20354
- Timestamp:
- 03/25/16 12:06:08 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_unit.js
r20234 r20354 175 175 } 176 176 else { 177 caxis = [ArrayMin(data[i] .slice(0,-1)),ArrayMax(data[i].slice(0,-1))];177 caxis = [ArrayMin(data[i]),ArrayMax(data[i].slice(0,-1))]; 178 178 } 179 179 datamin = caxis[0]; … … 185 185 texcoords[i].itemSize = 2; 186 186 for(var j = 0; j < x.length; j++){ 187 texcoords.push.apply(texcoords, [0.5, (data[i][j] - datamin) / datadelta]); 187 texcoords[i][texcoords[i].length] = 0.5; 188 texcoords[i][texcoords[i].length] = (data[i][j] - datamin) / datadelta; 188 189 } 189 190 }
Note:
See TracChangeset
for help on using the changeset viewer.