Changeset 39916
- Timestamp:
- Jan 6, 2017, 10:49:17 AM (10 years ago)
- Location:
- branches/czw_branch/20160809/Ohana/src/kapa2/src
- Files:
-
- 3 edited
-
DrawFrame.c (modified) (2 diffs)
-
PSFrame.c (modified) (2 diffs)
-
bDrawFrame.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/Ohana/src/kapa2/src/DrawFrame.c
r39594 r39916 12 12 13 13 graphic = GetGraphic(); 14 15 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)); 14 16 15 17 /* each axis is drawn independently, but ticks and labels are placed according to perpendicular distance. */ … … 30 32 dfy = graph[0].axis[i].dfy + 2*dy; 31 33 32 P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy);33 P *= (1 + 0.25*lweight);34 // P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy); 35 // P *= (1 + 0.25*lweight); 34 36 35 37 XSetLineAttributes (graphic->display, graphic->gc, lweight, LineSolid, CapNotLast, JoinMiter); -
branches/czw_branch/20160809/Ohana/src/kapa2/src/PSFrame.c
r38986 r39916 11 11 12 12 graphic = GetGraphic(); 13 14 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)); 13 15 14 16 /* each axis is drawn independently */ … … 30 32 dfy = -graph[0].axis[i].dfy + 2*dy; 31 33 32 P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy);33 P *= (1 + 0.25*lweight);34 // P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy); 35 // P *= (1 + 0.25*lweight); 34 36 35 37 fprintf (f, "%.1f setlinewidth\n", lweight); -
branches/czw_branch/20160809/Ohana/src/kapa2/src/bDrawFrame.c
r38986 r39916 11 11 12 12 // don't need graphic, unlink DrawFrame 13 14 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)); 13 15 14 16 /* each axis is drawn independently */ … … 28 30 dfx = graph[0].axis[i].dfx + 2*dx; 29 31 dfy = graph[0].axis[i].dfy + 2*dy; 30 P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy); 31 P *= (1 + 0.25*lweight); 32 33 // P = hypot (graph[0].axis[(i+1)%2].dfx, graph[0].axis[(i+1)%2].dfy); 34 // P *= (1 + 0.25*lweight); 32 35 33 36 bDrawSetStyle (buffer, color, lweight, 0);
Note:
See TracChangeset
for help on using the changeset viewer.
