Modified generatePlots.py