plot.py: implement button event handling