Changeset 13479 for trunk/Ohana/src/addstar/src/SEDops.c
- Timestamp:
- May 22, 2007, 12:23:09 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/SEDops.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/SEDops.c
r8361 r13479 111 111 graphdata.style = 2; 112 112 graphdata.ptype = 2; 113 KapaClear (Xgraph, TRUE);113 KapaClearSections (Xgraph); 114 114 magSection.name = strcreate ("mag"); 115 115 magSection.x = 0; … … 141 141 142 142 int j, minRow, Nfilter; 143 double X, Y ;143 double X, Y, Z, RA, DEC; 144 144 char line[1024], key[20]; 145 145 … … 156 156 SWAP (graphdata.ymin, graphdata.ymax); 157 157 158 KapaClear (Xgraph, TRUE);158 KapaClearSections (Xgraph); 159 159 KapaSetSection (Xgraph, &magSection); 160 160 KapaSetLimits (Xgraph, &graphdata); … … 164 164 graphdata.ptype = 7; 165 165 KapaPrepPlot (Xgraph, Nfilter, &graphdata); 166 KapaPlotVector (Xgraph, Nfilter, table[0].wavecode );167 KapaPlotVector (Xgraph, Nfilter, fitmags );166 KapaPlotVector (Xgraph, Nfilter, table[0].wavecode, "x"); 167 KapaPlotVector (Xgraph, Nfilter, fitmags, "y"); 168 168 169 169 graphdata.color = KapaColorByName ("red"); … … 178 178 } 179 179 KapaPrepPlot (Xgraph, Nfilter, &graphdata); 180 KapaPlotVector (Xgraph, Nfilter, table[0].wavecode );181 KapaPlotVector (Xgraph, Nfilter, fitmags );182 KapaPlotVector (Xgraph, Nfilter, fiterrs );183 KapaPlotVector (Xgraph, Nfilter, fiterrs );180 KapaPlotVector (Xgraph, Nfilter, table[0].wavecode, "x"); 181 KapaPlotVector (Xgraph, Nfilter, fitmags, "x"); 182 KapaPlotVector (Xgraph, Nfilter, fiterrs, "dym"); 183 KapaPlotVector (Xgraph, Nfilter, fiterrs, "dyp"); 184 184 KapaSendLabel (Xgraph, "model,fit (mags)", 1); 185 185 … … 208 208 } 209 209 KapaPrepPlot (Xgraph, Nfilter, &graphdata); 210 KapaPlotVector (Xgraph, Nfilter, table[0].wavecode );211 KapaPlotVector (Xgraph, Nfilter, fitmags );212 KapaPlotVector (Xgraph, Nfilter, fiterrs );213 KapaPlotVector (Xgraph, Nfilter, fiterrs );210 KapaPlotVector (Xgraph, Nfilter, table[0].wavecode, "x"); 211 KapaPlotVector (Xgraph, Nfilter, fitmags, "y"); 212 KapaPlotVector (Xgraph, Nfilter, fiterrs, "dym"); 213 KapaPlotVector (Xgraph, Nfilter, fiterrs, "dyp"); 214 214 KapaSendLabel (Xgraph, "wavelength (nm)", 0); 215 215 KapaSendLabel (Xgraph, "resid (mags)", 1); 216 216 217 217 KiiCursorOn (Xgraph); 218 while (KiiCursorRead (Xgraph, &X, &Y, key)) {218 while (KiiCursorRead (Xgraph, &X, &Y, &Z, &RA, &DEC, key)) { 219 219 // fprintf (stderr, "window: %f %f (%s)\n", X, Y, key); 220 220 if (!strcasecmp (key, "Q")) {
Note:
See TracChangeset
for help on using the changeset viewer.
