Index: trunk/Ohana/src/addstar/src/SEDops.c
===================================================================
--- trunk/Ohana/src/addstar/src/SEDops.c	(revision 13324)
+++ trunk/Ohana/src/addstar/src/SEDops.c	(revision 13479)
@@ -111,5 +111,5 @@
   graphdata.style = 2;
   graphdata.ptype = 2;
-  KapaClear (Xgraph, TRUE);
+  KapaClearSections (Xgraph);
   magSection.name = strcreate ("mag");
   magSection.x  = 0;
@@ -141,5 +141,5 @@
 
   int j, minRow, Nfilter;
-  double X, Y;
+  double X, Y, Z, RA, DEC;
   char line[1024], key[20];
 
@@ -156,5 +156,5 @@
   SWAP (graphdata.ymin, graphdata.ymax);
 
-  KapaClear (Xgraph, TRUE);
+  KapaClearSections (Xgraph);
   KapaSetSection (Xgraph, &magSection);
   KapaSetLimits (Xgraph, &graphdata);
@@ -164,6 +164,6 @@
   graphdata.ptype = 7;
   KapaPrepPlot (Xgraph, Nfilter, &graphdata);
-  KapaPlotVector (Xgraph, Nfilter, table[0].wavecode);
-  KapaPlotVector (Xgraph, Nfilter, fitmags);
+  KapaPlotVector (Xgraph, Nfilter, table[0].wavecode, "x");
+  KapaPlotVector (Xgraph, Nfilter, fitmags, "y");
 
   graphdata.color = KapaColorByName ("red");
@@ -178,8 +178,8 @@
   }
   KapaPrepPlot (Xgraph, Nfilter, &graphdata);
-  KapaPlotVector (Xgraph, Nfilter, table[0].wavecode);
-  KapaPlotVector (Xgraph, Nfilter, fitmags);
-  KapaPlotVector (Xgraph, Nfilter, fiterrs);
-  KapaPlotVector (Xgraph, Nfilter, fiterrs);
+  KapaPlotVector (Xgraph, Nfilter, table[0].wavecode, "x");
+  KapaPlotVector (Xgraph, Nfilter, fitmags, "x");
+  KapaPlotVector (Xgraph, Nfilter, fiterrs, "dym");
+  KapaPlotVector (Xgraph, Nfilter, fiterrs, "dyp");
   KapaSendLabel (Xgraph, "model,fit (mags)", 1);
 
@@ -208,13 +208,13 @@
   }
   KapaPrepPlot (Xgraph, Nfilter, &graphdata);
-  KapaPlotVector (Xgraph, Nfilter, table[0].wavecode);
-  KapaPlotVector (Xgraph, Nfilter, fitmags);
-  KapaPlotVector (Xgraph, Nfilter, fiterrs);
-  KapaPlotVector (Xgraph, Nfilter, fiterrs);
+  KapaPlotVector (Xgraph, Nfilter, table[0].wavecode, "x");
+  KapaPlotVector (Xgraph, Nfilter, fitmags, "y");
+  KapaPlotVector (Xgraph, Nfilter, fiterrs, "dym");
+  KapaPlotVector (Xgraph, Nfilter, fiterrs, "dyp");
   KapaSendLabel (Xgraph, "wavelength (nm)", 0);
   KapaSendLabel (Xgraph, "resid (mags)", 1);
 
   KiiCursorOn (Xgraph);
-  while (KiiCursorRead (Xgraph, &X, &Y, key)) {
+  while (KiiCursorRead (Xgraph, &X, &Y, &Z, &RA, &DEC, key)) {
     // fprintf (stderr, "window: %f %f (%s)\n", X, Y, key);
     if (!strcasecmp (key, "Q")) {
