collect.sh and plot.py