added option -p to plot results with matplotlib