New function for ploting SPWs was added