This function takes a figure containing time series data, along with data about the time axis and which points along it show significance and then plots a series of shaded patches over continuous time windows that are significant.
Attempt to add citation
added a semicolon.
Inspired by: raacampbell/shadedErrorBar
Create scripts with code, output, and formatted text in a single executable document.