Index: trunk/Ohana/src/opihi/cmd.astro/cplot.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/cplot.c	(revision 7080)
+++ trunk/Ohana/src/opihi/cmd.astro/cplot.c	(revision 7391)
@@ -3,5 +3,5 @@
 int cplot (int argc, char **argv) {
   
-  int i, Npts;
+  int i, Npts, status;
   float *x, *y, *r, *d, Rmin, Rmax;
   Vector Xvec, Yvec, *xvec, *yvec;
@@ -39,11 +39,31 @@
   y = Yvec.elements;
   
-  for (i = 0; i < Xvec.Nelements; i++, r++, d++, x++, y++) {
+  Npts = 0;
+  for (i = 0; i < Xvec.Nelements; i++, r++, d++) {
     while (*r < Rmin) *r += 360.0;
     while (*r > Rmax) *r -= 360.0;
-    fRD_to_XY (x, y, *r, *d, &graphmode.coords);
+    status = fRD_to_XY (x, y, *r, *d, &graphmode.coords);
+    if (!status) {
+      if (graphmode.ptype == 100) {
+	if (i % 2) {
+	  // for odd points, skip previous also
+	  x--;
+	  y--;
+	  Npts--;
+	} else {
+	  // for even points, skip previous also
+	  i++;
+	  r++;
+	  d++;
+	}
+      }
+      continue;
+    }
+    x++;
+    y++;
+    Npts++;
   }
-  
-  Npts = Xvec.Nelements;
+  Xvec.Nelements = Npts;
+
   graphmode.etype = 0;
   PrepPlotting (Npts, &graphmode);
