BeamPulse In [ ]: import numpy as np import matplotlib.pyplot as plt In [26]: lim = 60 div = 0.1 x = np . arange ( - lim , lim , div ) y = np . sin ( x ) z = np . exp ( - ( x / 10 ) ** 2 ) In [27]: plt . plot ( x , y , color = "red" ) plt . plot ( x , z , color = "blue" ) Out[27]: [<matplotlib.lines.Line2D at 0x7fa341d78850>] In [33]: plt . plot ( x , y * z + x / 150 , color = "blue" ) plt . savefig ( "pulse1.pdf" , transparent = True ) In [34]: plt . plot ( x , y * z - x / 150 , color = "red" ) plt . savefig ( "pulse2.pdf" , transparent = True ) In [ ]: ...