Generate one multiplot per DAG

Also refactor a bit of code *cough*.