generate plots with python's matplotlib