Refactored scatterplot for use with main GUI frame