Index: /issm/trunk-jpl/src/m/plot/plot_tensor_principalaxis.m
===================================================================
--- /issm/trunk-jpl/src/m/plot/plot_tensor_principalaxis.m	(revision 19082)
+++ /issm/trunk-jpl/src/m/plot/plot_tensor_principalaxis.m	(revision 19083)
@@ -29,5 +29,5 @@
 %take the center of each element if ~isonnode
 if datatype==1,
-	x=mean(md.mesh.x(md.mesh.elements'))'; y=mean(md.mesh.y(md.mesh.elements'))'; z=mean(md.mesh.z(md.mesh.elements'))';
+	x=mean(x(elements'))'; y=mean(y(elements'))'; z=mean(z(elements'))';
 end
 
