data_plot works; seriously need to refactor