savePlotToFile function

savePlotToFile