1) Modified plot.py to read external events and create a figure for it.