Changeset 13479 for trunk/Ohana/src/opihi/cmd.data/line.c
- Timestamp:
- May 22, 2007, 12:23:09 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/line.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/line.c
r12332 r13479 3 3 int line (int argc, char **argv) { 4 4 5 int kapa; 5 6 Graphdata graphmode; 6 7 float x[2], y[2]; 7 8 8 if (!style_args (&graphmode, &argc, argv, -1)) return FALSE;9 if (!style_args (&graphmode, &argc, argv, &kapa)) return FALSE; 9 10 10 11 if (argc != 6) { … … 17 18 y[1] = atof(argv[5]); 18 19 19 SetGraph (graphmode);20 21 20 /* set point style and errorbar mode (these are NOT sticky) */ 22 21 graphmode.style = 0; 23 22 graphmode.etype = 0; 24 23 25 if (!PrepPlotting (2, &graphmode)) return (FALSE); 26 27 PlotVector (2, x); 28 PlotVector (2, y); 24 if (!KapaPrepPlot (kapa, 2, &graphmode)) return (FALSE); 25 KapaPlotVector (kapa, 2, x, "x"); 26 KapaPlotVector (kapa, 2, y, "y"); 29 27 30 28 return (TRUE); 31 32 29 }
Note:
See TracChangeset
for help on using the changeset viewer.
