Move analysis from plotting to analysis where it belongs.

Use a results manager to save the plotting data.