- Timestamp:
- May 16, 2007, 3:19:08 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/kapa-mods-2007-05/Ohana/src/opihi/lib.data/PlotVectors.c
r13391 r13402 6 6 7 7 if (!GetGraph (NULL, &kapa, NULL)) return (FALSE); 8 9 /* tell kapa to look for the incoming image */ 10 KiiSendCommand (kapa, 4, "PLOT"); 11 12 /* send kapa the plot details */ 13 KiiSendMessage (kapa, "%8d %8d %d %d %d %d %d %f %f", 14 Npts, graphmode[0].style, 15 graphmode[0].ptype, graphmode[0].ltype, 16 graphmode[0].etype, graphmode[0].ebar, graphmode[0].color, 17 graphmode[0].lweight, graphmode[0].size); 18 KiiSendMessage (kapa, "%g %g %g %g", 19 graphmode[0].xmin, graphmode[0].xmax, 20 graphmode[0].ymin, graphmode[0].ymax); 8 KapaPrepPlot (kapa, Npts, graphmode); 21 9 return (TRUE); 22 10 } … … 24 12 int PlotVector (int Npts, float *values) { 25 13 26 int Nbytes; 27 28 Nbytes = Npts * sizeof (float); 29 write (kapa, values, Nbytes); 14 KapaPlotVector (kapa, Npts, values); 30 15 return (TRUE); 31 16 } … … 33 18 int PlotVectorPair (int N, float *xValues, float *yValues, Graphdata *graphmode) { 34 19 35 PrepPlotting (N, graphmode);36 PlotVector (N, xValues);37 PlotVector (N, yValues);20 PrepPlotting (N, graphmode); 21 PlotVector (N, xValues); 22 PlotVector (N, yValues); 38 23 39 return (TRUE);24 return (TRUE); 40 25 } 41 26 42 27 int PlotVectorTriplet (int N, float *xValues, float *yValues, float *zValues, Graphdata *graphmode) { 43 28 44 PrepPlotting (N, graphmode);45 PlotVector (N, xValues);46 PlotVector (N, yValues);47 PlotVector (N, zValues);29 PrepPlotting (N, graphmode); 30 PlotVector (N, xValues); 31 PlotVector (N, yValues); 32 PlotVector (N, zValues); 48 33 49 return (TRUE);34 return (TRUE); 50 35 } 51 36 52 37 /* we don't use GetGraph in PlotVector because it flushes the connection */ 38 /* PlotVector currently operates on the static identified socket 39 rather than the currently active socket -- must be preceeded by PrepPlotting */
Note:
See TracChangeset
for help on using the changeset viewer.
