Index: trunk/psModules/src/astrom/pmAstrometryVisual.c
===================================================================
--- trunk/psModules/src/astrom/pmAstrometryVisual.c	(revision 40083)
+++ trunk/psModules/src/astrom/pmAstrometryVisual.c	(revision 40454)
@@ -72,7 +72,7 @@
 
     graphdata.color = KapaColorByName ("black");
-    graphdata.ptype = 7;
+    graphdata.ptype = KAPA_POINT_BOX_SOLID;
     graphdata.size = 0.5;
-    graphdata.style = 2;
+    graphdata.style = KAPA_PLOT_POINTS;
 
     section.dx = 0.5;
@@ -232,7 +232,7 @@
 
     graphdata.color = KapaColorByName ("black");
-    graphdata.ptype = 7;
+    graphdata.ptype = KAPA_POINT_BOX_SOLID;
     graphdata.size = 0.5;
-    graphdata.style = 2;
+    graphdata.style = KAPA_PLOT_POINTS;
 
     // initialize and populate plot vectors
@@ -325,6 +325,6 @@
                        "Reference Star Luminosity Function, Shifted Raw Fit, and Cutoff",
                        KAPA_LABEL_XP);
-    graphdata.color=KapaColorByName("black");
-    graphdata.style = 1;
+    graphdata.color = KapaColorByName("black");
+    graphdata.style = KAPA_PLOT_HISTOGRAM;
     KapaPrepPlot (kapa1, lnMag->n, &graphdata);
     KapaPlotVector(kapa1, lnMag->n,   Mag->data.F32, "x");
@@ -332,5 +332,5 @@
 
     // Overplot fit
-    graphdata.style=0;
+    graphdata.style = KAPA_PLOT_CONNECT;
     KapaPrepPlot(kapa1,2,&graphdata);
     KapaPlotVector(kapa1, 2, x, "x");
@@ -391,7 +391,7 @@
     psFree(section.name);
 
-    graphdata.ptype = 7;
+    graphdata.ptype = KAPA_POINT_BOX_SOLID;
     graphdata.size = 0.5;
-    graphdata.style = 2;
+    graphdata.style = KAPA_PLOT_POINTS;
     graphdata.color = KapaColorByName ("black");
     KapaClearPlots(kapa1);
@@ -441,5 +441,5 @@
 
     graphdata.color = KapaColorByName ("red");
-    graphdata.style = 0;
+    graphdata.style = KAPA_PLOT_CONNECT;
 
     // overplot clumpy regions excluded from analysis
@@ -507,6 +507,6 @@
     KapaInitGraph (&graphdata);
     KapaClearPlots (kapa1);
-    graphdata.ptype = 2;
-    graphdata.style = 2;
+    graphdata.ptype = KAPA_POINT_CROSS;
+    graphdata.style = KAPA_PLOT_POINTS;
 
     psVector *xNew = psVectorAllocEmpty (xOld->n, PS_TYPE_F32);
@@ -556,5 +556,5 @@
     KapaPlotVector (kapa1, xOld->n, yOld->data.F32, "y");
 
-    graphdata.ptype = 1;
+    graphdata.ptype = KAPA_POINT_BOX_OPEN;
     graphdata.color = KapaColorByName("red");
     KapaPrepPlot (kapa1, xNew->n, &graphdata);
@@ -590,7 +590,7 @@
 
     graphdata.color = KapaColorByName ("black");
-    graphdata.ptype = 2;
+    graphdata.ptype = KAPA_POINT_CROSS;
     graphdata.size = 0.5;
-    graphdata.style = 2;
+    graphdata.style = KAPA_PLOT_POINTS;
 
     section.dx = 0.4;
@@ -619,5 +619,5 @@
     // New Corners
     graphdata.color = KapaColorByName("red");
-    graphdata.ptype = 7;
+    graphdata.ptype = KAPA_POINT_BOX_SOLID;
     graphdata.size = 1.5;
     KapaPrepPlot (kapa1, cornerPn->n, &graphdata);
@@ -812,6 +812,6 @@
     KapaSendLabel (kapa1, "pmAstromGridAngle residuals. Box: Correlation Peak.",
                    KAPA_LABEL_XP);
-    graphdata.style = 2;
-    graphdata.ptype = 0;
+    graphdata.style = KAPA_PLOT_POINTS;
+    graphdata.ptype = KAPA_POINT_BOX_SOLID;
     graphdata.size = 0.4;
     graphdata.color = KapaColorByName ("black");
@@ -861,5 +861,5 @@
                      offsetY - 0.5 * Scale};
     graphdata.color = KapaColorByName("red");
-    graphdata.style = 0;
+    graphdata.style = KAPA_PLOT_CONNECT;
     graphdata.size = 1.0;
     KapaPrepPlot(kapa1, 5, &graphdata);
@@ -873,6 +873,6 @@
     KapaSetSection(kapa1, &sectionX);
     graphdata.color = KapaColorByName("black");
-    graphdata.ptype = 1;
-    graphdata.style = 1;
+    graphdata.ptype = KAPA_POINT_BOX_OPEN;
+    graphdata.style = KAPA_PLOT_HISTOGRAM;
     graphdata.ymin = 0;
     graphdata.ymax = maxHorizontalSlice + 0.5;
@@ -887,5 +887,5 @@
     float xslice[2] = {offsetX - Scale / 2., offsetX - Scale / 2.};
     float yslice[2] = {-5, 100};
-    graphdata.style = 0;
+    graphdata.style = KAPA_PLOT_CONNECT;
     graphdata.color = KapaColorByName("red");
     KapaPrepPlot(kapa1, 2, &graphdata);
@@ -896,6 +896,6 @@
     KapaSetSection(kapa1, &sectionY);
     graphdata.color = KapaColorByName("black");
-    graphdata.ptype = 1;
-    graphdata.style = 1;
+    graphdata.ptype = KAPA_POINT_BOX_OPEN;
+    graphdata.style = KAPA_PLOT_HISTOGRAM;
     graphdata.ymin = -maxOffpix;
     graphdata.ymax = maxOffpix;
@@ -912,5 +912,5 @@
     yslice[0] = yslice[1] = offsetY - Scale / 2.;
     xslice[0] = -5; xslice[1] = 100;
-    graphdata.style = 0;
+    graphdata.style = KAPA_PLOT_CONNECT;
     graphdata.color = KapaColorByName("red");
     KapaPrepPlot(kapa1, 2, &graphdata);
@@ -982,6 +982,6 @@
 
     // the point size will be scaled from the z vector
-    graphdata.style = 2;
-    graphdata.ptype = 2;
+    graphdata.style = KAPA_PLOT_POINTS;
+    graphdata.ptype = KAPA_POINT_CROSS;
     graphdata.size = -1;
     graphdata.color = KapaColorByName ("black");
@@ -1019,6 +1019,6 @@
 
     // the point size will be scaled from the z vector
-    graphdata.style = 2;
-    graphdata.ptype = 7;
+    graphdata.style = KAPA_PLOT_POINTS;
+    graphdata.ptype = KAPA_POINT_CIRCLE_OPEN;
     graphdata.size = -1;
     graphdata.color = KapaColorByName ("red");
@@ -1079,6 +1079,6 @@
     KapaSendLabel (kapa3, "Horizontal Profile",
                    KAPA_LABEL_XP);
-    graphdata.style = 1;
-    graphdata.ptype = 0;
+    graphdata.style = KAPA_PLOT_HISTOGRAM;
+    graphdata.ptype = KAPA_POINT_BOX_SOLID;
     graphdata.size = 0.4;
     graphdata.color = KapaColorByName ("black");
@@ -1107,6 +1107,6 @@
     KapaSendLabel (kapa3, "Vertical Profile",
                    KAPA_LABEL_XP);
-    graphdata.style = 1;
-    graphdata.ptype = 0;
+    graphdata.style = KAPA_PLOT_HISTOGRAM;
+    graphdata.ptype = KAPA_POINT_BOX_SOLID;
     graphdata.size = 0.4;
 
@@ -1150,7 +1150,7 @@
 
     graphdata.color = KapaColorByName ("black");
-    graphdata.ptype = 7;
+    graphdata.ptype = KAPA_POINT_CIRCLE_OPEN;
     graphdata.size = 0.5;
-    graphdata.style = 2;
+    graphdata.style = KAPA_PLOT_POINTS;
 
     section.dx = 0.4;
@@ -1317,8 +1317,4 @@
 
     // X vs Y by mag (ref)
-    graphdata.color = KapaColorByName ("red");
-    graphdata.ptype = 7;
-    graphdata.style = 2;
-
     xVec = psVectorAlloc (refstars->n, PS_TYPE_F32);
     yVec = psVectorAlloc (refstars->n, PS_TYPE_F32);
@@ -1338,4 +1334,9 @@
     }
     xVec->n = yVec->n = zVec->n = n;
+
+    graphdata.color = KapaColorByName ("red");
+    graphdata.ptype = KAPA_POINT_X;
+    graphdata.style = KAPA_PLOT_POINTS;
+
     pmVisualTriplePlot (kapa2, &graphdata, xVec, yVec, zVec, false);
 
@@ -1356,8 +1357,4 @@
 
     // X vs Y by mag (raw)
-    graphdata.color = KapaColorByName ("black");
-    graphdata.ptype = 7;
-    graphdata.style = 2;
-
     psFree (xVec);
     psFree (yVec);
@@ -1381,4 +1378,8 @@
     }
     xVec->n = yVec->n = zVec->n = n;
+
+    graphdata.color = KapaColorByName ("black");
+    graphdata.ptype = KAPA_POINT_BOX_OPEN;
+    graphdata.style = KAPA_PLOT_POINTS;
     pmVisualTripleOverplot (kapa2, &graphdata, xVec, yVec, zVec, false);
 
@@ -1392,6 +1393,4 @@
     zVec = psVectorAlloc (match->n, PS_TYPE_F32);
 
-    graphdata.ptype = 2;
-    graphdata.color = KapaColorByName ("blue");
     n = 0;
     for (int i = 0; i < match->n; i++) {
@@ -1411,8 +1410,11 @@
     xVec->n = yVec->n = zVec->n = n;
     fprintf (stderr, "plotting %d matched stars (raw = blue)\n", n);
+
+    graphdata.ptype = KAPA_POINT_CROSS;
+    graphdata.color = KapaColorByName ("blue");
     pmVisualTripleOverplot (kapa2, &graphdata, xVec, yVec, zVec, false);
 
     if (0) {
-	graphdata.ptype = 3;
+	graphdata.ptype = KAPA_POINT_X;
 	graphdata.color = KapaColorByName ("green");
 	n = 0;
@@ -1449,9 +1451,5 @@
     KapaClearPlots (kapa3);
 
-    // X vs Y by mag (ref)
-    graphdata.color = KapaColorByName ("black");
-    graphdata.ptype = 2;
-    graphdata.style = 2;
-    graphdata.size = 1;
+    // mag vs dX
 
     section.x  = 0.0;
@@ -1486,4 +1484,9 @@
     KapaSendLabel(kapa1, "raw mag", KAPA_LABEL_XM);
     KapaSendLabel(kapa1, "dY", KAPA_LABEL_YM);
+
+    graphdata.color = KapaColorByName ("blue");
+    graphdata.ptype = KAPA_POINT_TRIANGLE_OPEN;
+    graphdata.style = KAPA_PLOT_POINTS;
+    graphdata.size = 2;
 
     KapaPrepPlot (kapa3, xVec->n, &graphdata);
