Barely-functional dev version of plotting.