Stacked line plot for a timetable


Updated 25 Oct 2017

View License

Plot the numeric variables in a timetable against the timetable's time vector. Each variable is plotted as a subplot with its own vertical axis, all aligned to a common time axis. ttplot is for plotting timetables, which require R2016b or later. However, ttplot also works with a table that contains a datetime or duration variable, and so is also useful for R2014b-R2016a.

Cite As

Peter Perkins (2023). ttplot(tt) (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Timetables in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Leave the topmost axes active for correct title placement.

Modify subplot extent.
Updated image.