Index: trunk/Ohana/src/opihi/cmd.astro/cplot.c
===================================================================
--- trunk/Ohana/src/opihi/cmd.astro/cplot.c	(revision 2598)
+++ trunk/Ohana/src/opihi/cmd.astro/cplot.c	(revision 7080)
@@ -3,16 +3,16 @@
 int cplot (int argc, char **argv) {
   
-  int i, Npts, Ngraph;
+  int i, Npts;
   float *x, *y, *r, *d, Rmin, Rmax;
   Vector Xvec, Yvec, *xvec, *yvec;
   Graphdata graphmode;
 
+  if (!style_args (&graphmode, &argc, argv, 0)) return FALSE;
+
   if (argc != 3) {
-    fprintf (stderr, "USAGE: cplot <ra> <dec>\n");
+    fprintf (stderr, "USAGE: cplot <ra> <dec> [style]\n");
     return (FALSE);
   }
-  
-  Ngraph = 0;
-  if (!GetGraph (&graphmode, NULL, &Ngraph)) return (FALSE);
+  SetGraph (graphmode);
 
   Rmin = graphmode.coords.crval1 - 182.0;
@@ -45,5 +45,4 @@
   }
   
-  
   Npts = Xvec.Nelements;
   graphmode.etype = 0;
@@ -56,5 +55,4 @@
     
   return (TRUE);
-
 }
 
