IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 22, 2007, 12:23:09 PM (19 years ago)
Author:
eugene
Message:

upgrading to kapa 2.0 API, upgrades to dvo user interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/procks.c

    r7917 r13479  
    1616  FILE *f;
    1717  Vector Xvec, Yvec;
    18   int i, j, N, NROCKS;
     18  int kapa, i, j, N, NROCKS;
    1919  int N0, N1, SpeedClip, Reload;
    2020  unsigned int t0, t1;
     
    2323  Graphdata graphmode;
    2424  char rockcat[256];
    25   int Ngraph;
    2625
    27   Ngraph = 0;
    2826  VarConfig ("ROCK_CATALOG", "%s", rockcat);
    29   if (!GetGraph (&graphmode, NULL, &Ngraph)) return (FALSE);
     27  if (!GetGraph (&graphmode, &kapa, NULL)) return (FALSE);
    3028
    3129  f = (FILE *) NULL;
     
    115113  graphmode.style = 2; /* set style to points */
    116114  graphmode.etype = 0; /* no errorbars */
    117   PrepPlotting (N, &graphmode);
    118  
    119   PlotVector (N, Xvec.elements);
    120   PlotVector (N, Yvec.elements);
     115  PlotVectorPair (kapa, N, Xvec.elements, Yvec.elements, &graphmode);
    121116
    122117  /* now plot vectors between two extrema */
     
    148143  graphmode.ptype = 100; /* connect pairs */
    149144  graphmode.etype = 0; /* no errorbars */
    150   PrepPlotting (N, &graphmode);
    151  
    152   PlotVector (N, Xvec.elements);
    153   PlotVector (N, Yvec.elements);
     145
     146  PlotVectorPair (kapa, N, Xvec.elements, Yvec.elements, &graphmode);
    154147
    155148  free (Xvec.elements);
Note: See TracChangeset for help on using the changeset viewer.