- Timestamp:
- May 15, 2007, 3:25:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/kapa-mods-2007-05/Ohana/src/opihi/lib.data/PlotVectors.c
r10795 r13391 1 1 # include "display.h" 2 2 3 static int Xgraph;3 static int kapa; 4 4 5 5 int PrepPlotting (int Npts, Graphdata *graphmode) { 6 6 7 if (!GetGraph (NULL, & Xgraph, NULL)) return (FALSE);7 if (!GetGraph (NULL, &kapa, NULL)) return (FALSE); 8 8 9 9 /* tell kapa to look for the incoming image */ 10 KiiSendCommand ( Xgraph, 4, "PLOT");10 KiiSendCommand (kapa, 4, "PLOT"); 11 11 12 /* send Xgraphthe plot details */13 KiiSendMessage ( Xgraph, "%8d %8d %d %d %d %d %d %f %f",12 /* send kapa the plot details */ 13 KiiSendMessage (kapa, "%8d %8d %d %d %d %d %d %f %f", 14 14 Npts, graphmode[0].style, 15 15 graphmode[0].ptype, graphmode[0].ltype, 16 16 graphmode[0].etype, graphmode[0].ebar, graphmode[0].color, 17 17 graphmode[0].lweight, graphmode[0].size); 18 KiiSendMessage ( Xgraph, "%g %g %g %g",18 KiiSendMessage (kapa, "%g %g %g %g", 19 19 graphmode[0].xmin, graphmode[0].xmax, 20 20 graphmode[0].ymin, graphmode[0].ymax); … … 27 27 28 28 Nbytes = Npts * sizeof (float); 29 write ( Xgraph, values, Nbytes);29 write (kapa, values, Nbytes); 30 30 return (TRUE); 31 31 }
Note:
See TracChangeset
for help on using the changeset viewer.
