Add logging to plotter.py