added function to interpolate cwt for plotting