added method to plot points to csv