#pragma TextEncoding = "UTF-8" #pragma rtGlobals=3 // Use modern global access method and strict wave access #pragma DefaultTab={3,20,4} // Set default tab width in Igor Pro 9 and later //Commands to execute: //Make_Graph(3) //Trim_Traces({20, NaN, NaN, NaN}) //Makes the graph with N duplicates of a trace. Run this first. FUNCTION Make_Graph(VARIABLE vNum_Duplicate_Traces) Make/O/D/N=100 Dummy_X=p, Dummy_Y=p^2, Dummy_Y_2=p^2+500 Display/N=Dummy_Graph/K=1 Dummy_Y vs Dummy_X as "Dummy_Graph" Variable iTraceDex FOR(iTraceDex=0;iTraceDex