Matthieu's skimming/plotting code