added plot to script as well as svg