plot_TS function

Plots the median and quantiles of a time-series