Changeset 13455
- Timestamp:
- May 21, 2007, 3:38:33 PM (19 years ago)
- Location:
- branches/kapa-mods-2007-05/Ohana/src
- Files:
-
- 4 edited
-
addstar/src/SEDops.c (modified) (3 diffs)
-
libkapa/src/KapaOpen.c (modified) (1 diff)
-
relastro/src/plotstuff.c (modified) (3 diffs)
-
relphot/src/plotstuff.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/kapa-mods-2007-05/Ohana/src/addstar/src/SEDops.c
r13404 r13455 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); -
branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KapaOpen.c
r13437 r13455 225 225 sprintf (line, "%s &", kapa_exec); 226 226 } else { 227 sprintf (line, "%s -name %s&", kapa_exec, kapa_name);227 sprintf (line, "%s -name '%s' &", kapa_exec, kapa_name); 228 228 } 229 229 system (line); -
branches/kapa-mods-2007-05/Ohana/src/relastro/src/plotstuff.c
r13404 r13455 76 76 } 77 77 78 void PlotVector (int Npts, double *vect, int mode, int N ) {78 void PlotVector (int Npts, double *vect, int mode, int N, char *type) { 79 79 80 80 float *values; … … 88 88 } 89 89 90 KapaPlotVector (Xgraph[N], Npts, values );90 KapaPlotVector (Xgraph[N], Npts, values, type); 91 91 free (values); 92 92 return; … … 115 115 116 116 PrepPlotting (N, graphdata, 0); 117 PlotVector (N, xlist, 0, 0 );118 PlotVector (N, ylist, 1, 0 );117 PlotVector (N, xlist, 0, 0, "x"); 118 PlotVector (N, ylist, 1, 0, "y"); 119 119 if (label != NULL) PlotLabel (label, 0); 120 120 DonePlotting (graphdata, 0); -
branches/kapa-mods-2007-05/Ohana/src/relphot/src/plotstuff.c
r13404 r13455 24 24 25 25 sprintf (name, "gastro [%d]", N); 26 Xgraph[N] = KapaOpen (" kapa2", name);26 Xgraph[N] = KapaOpen ("/home/kiawe/eugene/psconfig/dev.linux/bin/kapa2", name); 27 27 28 28 if (Xgraph[N] < 0) { … … 76 76 } 77 77 78 void PlotVector (int Npts, double *vect, int mode, int N ) {78 void PlotVector (int Npts, double *vect, int mode, int N, char *type) { 79 79 80 80 float *values; … … 88 88 } 89 89 90 KapaPlotVector (Xgraph[N], Npts, values );90 KapaPlotVector (Xgraph[N], Npts, values, type); 91 91 free (values); 92 92 return; … … 115 115 116 116 PrepPlotting (N, graphdata, 0); 117 PlotVector (N, xlist, 0, 0 );118 PlotVector (N, ylist, 1, 0 );117 PlotVector (N, xlist, 0, 0, "x"); 118 PlotVector (N, ylist, 1, 0, "y"); 119 119 if (label != NULL) PlotLabel (label, 0); 120 120 DonePlotting (graphdata, 0);
Note:
See TracChangeset
for help on using the changeset viewer.
