Index: trunk/Ohana/src/opihi/dvo/imstats.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/imstats.c	(revision 12332)
+++ trunk/Ohana/src/opihi/dvo/imstats.c	(revision 13479)
@@ -3,6 +3,6 @@
 int imstats (int argc, char **argv) {
   
-  int i, Nimage, N;
-  int Mcal, AutoLimits, Ngraph;
+  int i, kapa, Nimage, N;
+  int Mcal, AutoLimits;
   double r, d;
   Image *image;
@@ -10,11 +10,5 @@
   Graphdata graphmode;
 
-  Ngraph = -1;
-  if ((N = get_argument (argc, argv, "-n"))) {
-    remove_argument (N, &argc, argv);
-    Ngraph = atof (argv[N]);
-    remove_argument (N, &argc, argv);
-  }
-  if (!GetGraph (&graphmode, NULL, &Ngraph)) return (FALSE);
+  if (!style_args (&graphmode, &argc, argv, &kapa)) return (FALSE);
 
   Mcal = TRUE;
@@ -60,7 +54,5 @@
   graphmode.style = 2;
   graphmode.etype = 0;
-  PrepPlotting (Nimage, &graphmode);
-  PlotVector (Nimage, Xvec.elements);
-  PlotVector (Nimage, Yvec.elements);
+  PlotVectorPair (kapa, Nimage, Xvec.elements, Yvec.elements, &graphmode);
   
   free (Xvec.elements);
