basic plot saving implemented