1) Modified plot.py to draw plots for simple and external events and legends for them.
2) Added get_colors().