added plotting conditional on being on macOS. can't install on hpc.