Changeset 1222 for sans/Dev/trunk/NCNR_User_Procedures/Analysis/Packages
- Timestamp:
- Oct 18, 2019 1:08:35 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Analysis/Packages/Wrapper_v40.ipf
r1001 r1222 345 345 // make the necessary waves if they don't exist already 346 346 if(exists("Hold_"+suffix) == 0) 347 Make/O/D/N=(num) $("epsilon_"+suffix),$("Hold_"+suffix) 348 Make/O/T/N=(num) $("LoLim_"+suffix),$("HiLim_"+suffix) 349 Wave eps = $("epsilon_"+suffix) 350 Wave coef=$popStr 351 if(eps[0] == 0) //if eps already if filled, don't change it 352 eps = abs(coef*1e-4) + 1e-10 //default eps is proportional to the coefficients 353 endif 354 endif 347 Make/O/D/N=(num) $("Hold_"+suffix) 348 endif 349 if(exists("epsilon_"+suffix) == 0) 350 Make/O/D/N=(num) $("epsilon_"+suffix) 351 endif 352 if(exists("LoLim_"+suffix) == 0) 353 Make/O/T/N=(num) $("LoLim_"+suffix) 354 endif 355 if(exists("HiLim_"+suffix) == 0) 356 Make/O/T/N=(num) $("HiLim_"+suffix) 357 endif 358 359 Wave eps = $("epsilon_"+suffix) 360 Wave coef=$popStr 361 if(eps[0] == 0) //if eps already if filled, don't change it 362 eps = abs(coef*1e-4) + 1e-10 //default eps is proportional to the coefficients 363 endif 364 355 365 // default epsilon values, sometimes needed for the fit 356 366 … … 1169 1179 1170 1180 // insert graphs 1181 // extra flag "2" (Igor >=7.00) is 2x screen resolution 1171 1182 if(WaveExists(dataXw)) 1172 1183 // Notebook $nb picture={$topGraph(0, 0, 400, 300), -5, 1}, text="\r" 1173 Notebook $nb scaling={50, 50}, picture={$topGraph(0, 0, 800, 600), -5, 1 }, text="\r"1184 Notebook $nb scaling={50, 50}, picture={$topGraph(0, 0, 800, 600), -5, 1,2}, text="\r" 1174 1185 // 1175 1186 else //must be 2D Gizmo 1176 1187 Execute "ExportGizmo Clip" //this ALWAYS is a PICT or BMP. Gizmo windows are different... 1177 1188 LoadPict/Q/O "Clipboard",tmp_Gizmo 1178 Notebook $nb picture={tmp_Gizmo(0, 0, 800, 600), 0, 1 }, text="\r"1189 Notebook $nb picture={tmp_Gizmo(0, 0, 800, 600), 0, 1,2}, text="\r" 1179 1190 endif 1180 1191 … … 1211 1222 /// SavePICT /E=-5/O/P=home /I/W=(0,0,3,3) as pictStr 1212 1223 if(WaveExists(dataXw)) 1213 SavePICT /E=-5/O/ P=home/WIN=$topGraph /W=(0,0,800,600) as pictStr1224 SavePICT /E=-5/O/B=144/P=home/WIN=$topGraph /W=(0,0,800,600) as pictStr 1214 1225 else 1215 1226 Execute "ExportGizmo /P=home as \""+pictStr+"\"" //this won't be of very high quality
Note: See TracChangeset
for help on using the changeset viewer.