draw all plots
start c++ implementation