Index: /issm/trunk-jpl/src/m/plot/checkplotoptions.js
===================================================================
--- /issm/trunk-jpl/src/m/plot/checkplotoptions.js	(revision 20903)
+++ /issm/trunk-jpl/src/m/plot/checkplotoptions.js	(revision 20904)
@@ -10,8 +10,8 @@
 	if (options.exist('unit')){
 		if (options.getfieldvalue('unit') === 'km'){
-			options.changefieldvalue('unit',10^-3);
+			options.changefieldvalue('unit',Math.pow(10,-3));
 		}
 		if (options.getfieldvalue('unit') === '100km'){
-			options.changefieldvalue('unit',10^-5);
+			options.changefieldvalue('unit',Math.pow(10,-5));
 		}
 	}
@@ -226,5 +226,5 @@
 		   
 		   //default values
-		   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]);
+		   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]);
 	   }
 	}
