Shaded time series

Plot time series one above the other with coloured strips highlighting interesting features.

You are now following this Submission

Use this function to plot several time series aligned beneath each other with shaded blocks highlighting important sections.

Cite As

Carl Fischer (2026). Shaded time series (https://ch.mathworks.com/matlabcentral/fileexchange/20625-shaded-time-series), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: ShadePlotForEmphasis

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.5.0.0

Slight improvement to parameter consistency checks.

1.4.0.0

Accept different indicators to shade each subplot differently.
If the user specifies a single column of data then use the current plot instead of creating a new one to allow the user more control (eg. custom subplots).

1.3.0.0

Detect inconsistent data lengths.

1.2.0.0

Fixed bug that occurred when X was a row vector.

1.1.0.0

Allow data in rows or columns. Extra sanity checks on data lengths.

1.0.0.0