added map plotting code, save commands to every figure