sophisticated plotting script