Replace existing svg in plotting code.