Sparklines Table 1.0

Sparklines are word-size plots showing data trends in dense, comparative format.
Updated 4 Mar 2016

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Sparklines are suggested by Edward Tufte in 'The Visual Display of Quantitative Information' and his other books. For discussion, see:
This code produces a table of sparklines from a matrix of input data, rows are formatted as independent sparklines, and their first, last, max and minimum values are tabulated.
This code is in continuing development and future versions may include multiple lines per axis, acceptable ranges, more flexibility for tabular data, and improved layout.

The code has several limitations, namely that the layout is relative to the window size, and therefore cannot be resized or extended. These will be addressed in future versions

Cite As

James Houghton (2024). Sparklines Table 1.0 (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Sparklines - mrfk

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

MathWorks update: Added Live Script.
Clarified Documentation