Update plotter.cpp