// plot the lowpass spectrum in black
if shape.lower() == "tri":
plt.plot(f,lp_tri(f,fb))
elif shape.lower() == "line":
plt.plot([fb, fb],line_ampl,"b", linewidth=2)
plt.plot([-fb, -fb],line_ampl,"b", linewidth=2)
else:
print("shape must be tri or line")
// overlay positive and negative frequency translates
for n in range(N):
if shape.lower() == "tri":
plt.plot(f,lp_tri(f-(n+1)*fs,fb),"--r")