updated PlotTraces.py script