converted all graphing functions to use generic plot_points()