Log scale, colors, legends, and precursor stuff

Added log scale and other code preparing for plotting multiple things
at once. It currently only plots the last data set.