Changeset 20904
- Timestamp:
- 07/13/16 15:47:52 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/checkplotoptions.js
r19741 r20904 10 10 if (options.exist('unit')){ 11 11 if (options.getfieldvalue('unit') === 'km'){ 12 options.changefieldvalue('unit', 10^-3);12 options.changefieldvalue('unit',Math.pow(10,-3)); 13 13 } 14 14 if (options.getfieldvalue('unit') === '100km'){ 15 options.changefieldvalue('unit', 10^-5);15 options.changefieldvalue('unit',Math.pow(10,-5)); 16 16 } 17 17 } … … 226 226 227 227 //default values 228 options.changefieldvalue('scaleruler',[ArrayMin(md.mesh.x)+6/8*Lx, ArrayMin(md.mesh.y)+1/10*Ly, 10^(Mat.ceil(Mat.log10(Lx)))/5, Math.floor(Lx/100), 5]);228 options.changefieldvalue('scaleruler',[ArrayMin(md.mesh.x)+6/8*Lx, ArrayMin(md.mesh.y)+1/10*Ly, Math.pow(10,(Math.ceil(Math.log10(Lx))))/5, Math.floor(Lx/100), 5]); 229 229 } 230 230 }
Note:
See TracChangeset
for help on using the changeset viewer.