def gain(abf):
Ys=np.nan_to_num(swhlab.ap.getAvgBySweep(abf,'<STR_LIT>'))<EOL>Xs=abf.clampValues(abf.dataX[int(abf.protoSeqX[<NUM_LIT:1>]+<NUM_LIT>)])<EOL>swhlab.plot.new(abf,title="<STR_LIT>",xlabel="<STR_LIT>",<EOL>ylabel="<STR_LIT>")<EOL>pylab.plot(Xs,Ys,'<STR_LIT>',ms=<NUM_LIT:20>,alpha=<NUM_LIT>,color='<STR_LIT:b>')<EOL>pylab.axhline(<NUM_LIT:0>,alpha=<NUM_LIT>,lw=<NUM_LIT:2>,color='<STR_LIT:r>',ls="<STR_LIT>")<EOL>pylab.margins(<NUM_LIT>,<NUM_LIT>)<EOL>
easy way to plot a gain function.