Use ranges rather than arrays in plotter.
Plotter: renaming various structs / variables to improve readability.