Index: trunk/Ohana/src/opihi/dvo/paverage.c
===================================================================
--- trunk/Ohana/src/opihi/dvo/paverage.c	(revision 12332)
+++ trunk/Ohana/src/opihi/dvo/paverage.c	(revision 13479)
@@ -5,5 +5,5 @@
   
   FILE *f;
-  int i, j, Narg, Npts, NPTS, status, VERBOSE;
+  int i, j, kapa, Narg, Npts, NPTS, status, VERBOSE;
   int Nsecfilt, Nsec;
   double Mz, Mr, mag;
@@ -23,5 +23,5 @@
   Nsecfilt = GetPhotcodeNsecfilt ();
 
-  if (!style_args (&graphmode, &argc, argv, 0)) return FALSE;
+  if (!style_args (&graphmode, &argc, argv, &kapa)) return FALSE;
 
   f = (FILE *) NULL;
@@ -82,5 +82,4 @@
     return (FALSE);
   }
-  SetGraph (graphmode);
   graphmode.style = 2; /* set style to points */
   graphmode.size = -1; /* point size determined by Zvec */
@@ -141,5 +140,5 @@
       }
       if (Npts > NCHUNK) {
-	  PlotVectorTriplet (Npts, Xvec, Yvec, Zvec, &graphmode);
+	  PlotVectorTriplet (kapa, Npts, Xvec, Yvec, Zvec, &graphmode);
 	  Npts = 0;
       }
@@ -147,5 +146,5 @@
     dvo_catalog_free (&catalog);
   }
-  if (Npts > 0) PlotVectorTriplet (Npts, Xvec, Yvec, Zvec, &graphmode);
+  if (Npts > 0) PlotVectorTriplet (kapa, Npts, Xvec, Yvec, Zvec, &graphmode);
 
   free (Xvec);
