Code for plotting and mapping.