- Timestamp:
- May 18, 2007, 7:24:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/kapa-mods-2007-05/Ohana/src/opihi/lib.data/PlotVectors.c
r13409 r13432 1 1 # include "display.h" 2 2 3 static int kapa; 3 int PlotVectorPair (int kapa, int Npts, float *xValues, float *yValues, Graphdata *graphmode) { 4 4 5 int PrepPlotting (int Npts, Graphdata *graphmode) {6 7 if (!GetGraph (NULL, &kapa, NULL)) return (FALSE);8 5 KapaPrepPlot (kapa, Npts, graphmode); 9 return (TRUE); 10 } 11 12 int PlotVector (int Npts, float *values, char *type) { 13 14 KapaPlotVector (kapa, Npts, values, type); 15 return (TRUE); 16 } 17 18 int PlotVectorPair (int N, float *xValues, float *yValues, Graphdata *graphmode) { 19 20 PrepPlotting (N, graphmode); 21 PlotVector (N, xValues, "x"); 22 PlotVector (N, yValues, "y"); 6 KapaPlotVector (kapa, Npts, xValues, "x"); 7 KapaPlotVector (kapa, Npts, yValues, "y"); 23 8 24 9 return (TRUE); 25 10 } 26 11 27 int PlotVectorTriplet (int N, float *xValues, float *yValues, float *zValues, Graphdata *graphmode) {12 int PlotVectorTriplet (int kapa, int Npts, float *xValues, float *yValues, float *zValues, Graphdata *graphmode) { 28 13 29 PrepPlotting (N, graphmode);30 PlotVector (N, xValues, "x");31 PlotVector (N, yValues, "y");32 PlotVector (N, zValues, "z");14 KapaPrepPlot (kapa, Npts, graphmode); 15 KapaPlotVector (kapa, Npts, xValues, "x"); 16 KapaPlotVector (kapa, Npts, yValues, "y"); 17 KapaPlotVector (kapa, Npts, zValues, "z"); 33 18 34 19 return (TRUE); 35 20 } 36 37 /* we don't use GetGraph in PlotVector because it flushes the connection */38 /* PlotVector currently operates on the static identified socket39 rather than the currently active socket -- must be preceeded by PrepPlotting */
Note:
See TracChangeset
for help on using the changeset viewer.
