Index: /branches/czw_branch/20160809/Ohana/src/kapa2/src/DrawFrame.c
===================================================================
--- /branches/czw_branch/20160809/Ohana/src/kapa2/src/DrawFrame.c	(revision 39915)
+++ /branches/czw_branch/20160809/Ohana/src/kapa2/src/DrawFrame.c	(revision 39916)
@@ -12,4 +12,6 @@
 
   graphic = GetGraphic();
+
+  P = 0.5 * (1 + 0.25*graph[0].axis[0].lweight) * (hypot (graph[0].axis[0].dfx, graph[0].axis[0].dfy) + hypot (graph[0].axis[0].dfx, graph[0].axis[0].dfy));
 
   /* each axis is drawn independently, but ticks and labels are placed according to perpendicular distance. */
@@ -30,6 +32,6 @@
     dfy = graph[0].axis[i].dfy + 2*dy;
 
-    P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy);
-    P *= (1 + 0.25*lweight);
+    // P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy);
+    // P *= (1 + 0.25*lweight);
 
     XSetLineAttributes (graphic->display, graphic->gc, lweight, LineSolid, CapNotLast, JoinMiter);
Index: /branches/czw_branch/20160809/Ohana/src/kapa2/src/PSFrame.c
===================================================================
--- /branches/czw_branch/20160809/Ohana/src/kapa2/src/PSFrame.c	(revision 39915)
+++ /branches/czw_branch/20160809/Ohana/src/kapa2/src/PSFrame.c	(revision 39916)
@@ -11,4 +11,6 @@
 
   graphic = GetGraphic();
+
+  P = 0.5 * (1 + 0.25*graph[0].axis[0].lweight) * (hypot (graph[0].axis[0].dfx, graph[0].axis[0].dfy) + hypot (graph[0].axis[0].dfx, graph[0].axis[0].dfy));
 
   /* each axis is drawn independently */
@@ -30,6 +32,6 @@
     dfy = -graph[0].axis[i].dfy + 2*dy;
 
-    P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy);
-    P *= (1 + 0.25*lweight);
+    // P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy);
+    // P *= (1 + 0.25*lweight);
 
     fprintf (f, "%.1f setlinewidth\n", lweight);
Index: /branches/czw_branch/20160809/Ohana/src/kapa2/src/bDrawFrame.c
===================================================================
--- /branches/czw_branch/20160809/Ohana/src/kapa2/src/bDrawFrame.c	(revision 39915)
+++ /branches/czw_branch/20160809/Ohana/src/kapa2/src/bDrawFrame.c	(revision 39916)
@@ -11,4 +11,6 @@
 
   // don't need graphic, unlink DrawFrame
+
+  P = 0.5 * (1 + 0.25*graph[0].axis[0].lweight) * (hypot (graph[0].axis[0].dfx, graph[0].axis[0].dfy) + hypot (graph[0].axis[0].dfx, graph[0].axis[0].dfy));
 
   /* each axis is drawn independently */
@@ -28,6 +30,7 @@
     dfx = graph[0].axis[i].dfx + 2*dx;
     dfy = graph[0].axis[i].dfy + 2*dy;
-    P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy);
-    P *= (1 + 0.25*lweight);
+
+    // P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy);
+    // P *= (1 + 0.25*lweight);
 
     bDrawSetStyle (buffer, color, lweight, 0);
