######################################################### # file: plotSweep.lsf # # Description: This script file # is used to plot the sweep results # # Copyright 2015, Lumerical Solutions, Inc. ######################################################### myr=getsweepresult("coldModSweep","transmission"); x=myr.getparameter("frequency")/1e12; y=myr.getattribute("TE gain (dB)"); ona_4=getresult("ONA_4","input 1/mode 1/gain"); ona_1=getresult("ONA_1","input 2/mode 1/gain"); y1=ona_4.getattribute("TE gain (dB)"); y4=ona_1.getattribute("TE gain (dB)"); plot(x,y1,y,"Frequency [THz]", "Gain [db]"); legend("DBR","FP I=0.0","FP I=-0.5","FP I=-1.0","FP I=-1.5","FP I=-2.0","FP I=-2.5","FP I=-3.0","FP I=-3.5","FP I=-4.0","FP I=-4.5","FP I=-5.0");