Index: ../trunk-jpl/src/m/plot/plot_tensor_principalaxis.m
===================================================================
--- ../trunk-jpl/src/m/plot/plot_tensor_principalaxis.m	(revision 19082)
+++ ../trunk-jpl/src/m/plot/plot_tensor_principalaxis.m	(revision 19083)
@@ -28,7 +28,7 @@
 
 %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
 
 %plot quivers
