IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2007, 7:24:04 AM (19 years ago)
Author:
eugene
Message:

fixing style arguments, graphmode from kapa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/src/opihi/lib.data/PlotVectors.c

    r13409 r13432  
    11# include "display.h"
    22
    3 static int kapa;
     3int PlotVectorPair (int kapa, int Npts, float *xValues, float *yValues, Graphdata *graphmode) {
    44
    5 int PrepPlotting (int Npts, Graphdata *graphmode) {
    6 
    7   if (!GetGraph (NULL, &kapa, NULL)) return (FALSE);
    85  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");
    238
    249  return (TRUE);
    2510}
    2611
    27 int PlotVectorTriplet (int N, float *xValues, float *yValues, float *zValues, Graphdata *graphmode) {
     12int PlotVectorTriplet (int kapa, int Npts, float *xValues, float *yValues, float *zValues, Graphdata *graphmode) {
    2813
    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");
    3318
    3419  return (TRUE);
    3520}
    36 
    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.