- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Ohana/src/opihi/cmd.data/line.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/Ohana/src/opihi/cmd.data/line.c
r13479 r34041 3 3 int line (int argc, char **argv) { 4 4 5 int kapa ;5 int kapa, N; 6 6 Graphdata graphmode; 7 7 float x[2], y[2]; 8 9 /* FracPositions uses coordinates of 0-1 relative to axis range */ 10 int FracPositions = FALSE; 11 if ((N = get_argument (argc, argv, "-frac"))) { 12 remove_argument (N, &argc, argv); 13 FracPositions = TRUE; 14 } 8 15 9 16 if (!style_args (&graphmode, &argc, argv, &kapa)) return FALSE; … … 18 25 y[1] = atof(argv[5]); 19 26 27 if (FracPositions) { 28 x[0] = x[0] * (graphmode.xmax - graphmode.xmin) + graphmode.xmin; 29 y[0] = y[0] * (graphmode.ymax - graphmode.ymin) + graphmode.ymin; 30 x[1] = x[1] * (graphmode.xmax - graphmode.xmin) + graphmode.xmin; 31 y[1] = y[1] * (graphmode.ymax - graphmode.ymin) + graphmode.ymin; 32 } 33 20 34 /* set point style and errorbar mode (these are NOT sticky) */ 21 35 graphmode.style = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
