plot.py: removed unused code and refactored box plots