IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 4, 2017, 7:41:01 PM (9 years ago)
Author:
eugene
Message:

convert graphdata.style = 2 to the enum name

Location:
branches/eam_branches/ohana.20170822/src/opihi
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20170822/src/opihi/cmd.astro/cdot.c

    r34088 r40156  
    2222
    2323  /* set point style and errorbar mode (these are NOT sticky) */
    24   graphmode.style = 2;
     24  graphmode.style = KAPA_PLOT_POINTS; /* points */
    2525  graphmode.etype = 0;
    2626
  • branches/eam_branches/ohana.20170822/src/opihi/cmd.astro/cgrid.c

    r34584 r40156  
    276276  /* send the line segments as connect-points */
    277277  Xvec.Nelements = Yvec.Nelements = N;
    278   graphmode.style = 2; /* points */
    279   graphmode.ptype = 100; /* connect a pair */
     278  graphmode.style = KAPA_PLOT_POINTS; /* points */
     279  graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */
    280280  graphmode.etype = 0;
    281281  PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode);
  • branches/eam_branches/ohana.20170822/src/opihi/cmd.astro/czplot.c

    r35757 r40156  
    111111  Zvec.Nelements = Npts;
    112112
    113   graphmode.style = 2;
     113  graphmode.style = KAPA_PLOT_POINTS; /* points */
    114114  graphmode.size = -1; /* point size determined by Zvec */
    115115  graphmode.etype = 0;
  • branches/eam_branches/ohana.20170822/src/opihi/cmd.data/grid.c

    r34584 r40156  
    175175
    176176  Xvec.Nelements = Yvec.Nelements = N;
    177   graphmode.style = 2; /* points */
    178   graphmode.ptype = 100; /* connect a pair */
     177  graphmode.style = KAPA_PLOT_POINTS; /* points */
     178  graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */
    179179  graphmode.etype = 0;
    180180  PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode);
  • branches/eam_branches/ohana.20170822/src/opihi/cmd.data/zplot.c

    r38062 r40156  
    117117
    118118  /* point size determined by Zvec */
    119   graphmode.style = 2; /* plot points */
     119  graphmode.style = KAPA_PLOT_POINTS; /* points */
    120120  graphmode.size = -1; /* point size determined by Zvec */
    121121  PlotVectorTriplet (kapa, xvec, yvec, &Zvec, mask, &graphmode);
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/catalog.c

    r38471 r40156  
    390390    REALLOCATE (Zvec.elements, float, MAX (Zvec.Nelements, 1));
    391391   
    392     graphmode.style = 2; /* set style to points */
     392    graphmode.style = KAPA_PLOT_POINTS; /* points */
    393393    graphmode.size = -1; /* point size determined by Zvec */
    394394    graphmode.etype = 0; /* no errorbars */
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/dmt.c

    r39457 r40156  
    150150    vec5[0].Nelements = Dvec.Nelements;
    151151  } else {
    152     graphmode.style = 2; /* set style to points */
     152    graphmode.style = KAPA_PLOT_POINTS; /* points */
    153153    PlotVector (kapa, N, Xvec.elements, Yvec.elements, &graphmode);
    154154
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/fitcolors.c

    r39457 r40156  
    9292    graphdata.ymin = minDelta;
    9393    graphdata.ymax = maxDelta;
    94     graphdata.style = 2;
    95     graphdata.ptype = 2;
     94    graphmode.style = KAPA_PLOT_POINTS; /* points */
     95    graphmode.ptype = KAPA_POINT_CIRCLE_SOLID; /* connect pairs of points */
    9696    KapaClearSections (kapa);
    9797    KapaSetFont (kapa, "helvetica", 14);
     
    192192    graphdata.ymin = minDelta;
    193193    graphdata.ymax = maxDelta;
    194     graphdata.style = 2;
    195     graphdata.ptype = 2;
     194    graphmode.style = KAPA_PLOT_POINTS; /* points */
     195    graphmode.ptype = KAPA_POINT_CIRCLE_SOLID; /* connect pairs of points */
    196196  }
    197197
     
    315315          deltaFit[i] = C0 + C1*colorFit[i];
    316316        }
    317         graphdata.style = 0;
     317        graphmode.style = KAPA_PLOT_CONNECT; /* lines */
    318318        graphdata.color = KapaColorByName ("red");
    319319
     
    329329        KapaSetFont (kapa, "helvetica", 14);
    330330
    331         graphdata.style = 2;
     331        graphmode.style = KAPA_PLOT_POINTS; /* points */
    332332        graphdata.color = KapaColorByName ("black");
    333333
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/fitsed.c

    r39457 r40156  
    157157    if (!GetGraph (&graphdata, &kapa, NULL)) return (FALSE);
    158158    SetLimitsRaw (wavecode, NULL, Nfilter, &graphdata);
    159     graphdata.style = 2;
    160     graphdata.ptype = 2;
     159    graphdata.style = KAPA_PLOT_POINTS; /* points */
     160    graphdata.ptype = KAPA_POINT_CIRCLE_SOLID;
    161161    KapaClearSections (kapa);
    162162    magSection.name = strcreate ("mag");
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/images.c

    r37807 r40156  
    352352  Xvec.Nelements = Yvec.Nelements = N;
    353353  if (N > 0) {
    354     graphmode.style = 2; /* points */
    355     graphmode.ptype = 100; /* connect pairs of points */
     354    graphmode.style = KAPA_PLOT_POINTS; /* points */
     355    graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */
    356356    graphmode.etype = 0;
    357357    PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode);
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/imbox.c

    r39926 r40156  
    156156  Xvec.Nelements = Yvec.Nelements = Npts;
    157157  if (Npts > 0) {
    158     graphmode.style = 2; /* points */
    159     graphmode.ptype = 100; /* connect pairs of points */
     158    graphmode.style = KAPA_PLOT_POINTS; /* points */
     159    graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */
    160160    graphmode.etype = 0;
    161161    PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode);
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/imdense.c

    r39926 r40156  
    5959  Xvec.Nelements = Yvec.Nelements = N;
    6060  if (N > 0) {
    61     graphmode.style = 2; /* points */
     61    graphmode.style = KAPA_PLOT_POINTS; /* points */
    6262    graphmode.etype = 0;
    6363    PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode);
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/imstats.c

    r37807 r40156  
    5151  if (AutoLimits) SetLimits (&Xvec, &Yvec, &graphmode);
    5252
    53   graphmode.style = 2;
     53  graphmode.style = KAPA_PLOT_POINTS; /* points */
    5454  graphmode.etype = 0;
    5555  PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode);
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/paverage.c

    r39457 r40156  
    8181    return (FALSE);
    8282  }
    83   graphmode.style = 2; /* set style to points */
     83  graphmode.style = KAPA_PLOT_POINTS; /* points */
    8484  graphmode.size = -1; /* point size determined by Zvec */
    8585  graphmode.etype = 0; /* no errorbars */
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/pmeasure.c

    r39457 r40156  
    154154    return (FALSE);
    155155  }
    156   graphmode.style = 2; /* set style to points */
     156  graphmode.style = KAPA_PLOT_POINTS; /* points */
    157157  graphmode.size = -1; /* point size determined by Zvec */
    158158  graphmode.etype = 0; /* no errorbars */
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/procks.c

    r39457 r40156  
    111111  Yvec.Nelements = Xvec.Nelements = N;
    112112 
    113   graphmode.style = 2; /* set style to points */
     113  graphmode.style = KAPA_PLOT_POINTS; /* points */
    114114  graphmode.etype = 0; /* no errorbars */
    115115  PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode);
     
    142142  Yvec.Nelements = Xvec.Nelements = N;
    143143 
    144   graphmode.style = 2; /* set style to points */
    145   graphmode.ptype = 100; /* connect pairs */
     144  graphmode.style = KAPA_PLOT_POINTS; /* points */
     145  graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */
    146146  graphmode.etype = 0; /* no errorbars */
    147147
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/showtile.c

    r39457 r40156  
    7878  Xvec.Nelements = Yvec.Nelements = N;
    7979  if (N > 0) {
    80     graphmode.style = 2; /* points */
    81     graphmode.ptype = 100; /* connect pairs of points */
     80    graphmode.style = KAPA_PLOT_POINTS; /* points */
     81    graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */
    8282    graphmode.etype = 0;
    8383    PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode);
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/simage.c

    r37807 r40156  
    118118  }
    119119
    120   graphmode.style = 2;
     120  graphmode.style = KAPA_PLOT_POINTS;
    121121  graphmode.size = -1;
    122122  graphmode.etype = 0;
  • branches/eam_branches/ohana.20170822/src/opihi/dvo/skycat.c

    r39926 r40156  
    121121  Xvec.Nelements = Yvec.Nelements = Npts;
    122122  if (Npts > 0) {
    123     graphmode.style = 2; /* points */
    124     graphmode.ptype = 100; /* connect pairs of points */
     123    graphmode.style = KAPA_PLOT_POINTS; /* points */
     124    graphmode.ptype = KAPA_POINT_PAIR_CONNECT; /* connect pairs of points */
    125125    graphmode.etype = 0;
    126126    PlotVectorPair (kapa, &Xvec, &Yvec, NULL, &graphmode);
Note: See TracChangeset for help on using the changeset viewer.