Make bar chart race animation gif file from data (inData) with option (Opt).
Updated 23 Jan 2020

View License

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

barChartRace wittern by Eiji Konaka, Jan/2020.
Make bar chart race animation gif file from data (inData) with option (Opt).
This file is tested and intended to work on R2016b (or later).

inData(i,j); value of i-th index at j-th time instance
All values in this matrix are assumed to be positive.
If it contains negative value, modify 'automatic scaling of horizontal axis' line as you like.

The output is directly written as an animation gif file with filename outFileName.

xTickLabelStrs(i): vertical tick label of i-th index.
outFileName: output file name.
xLabelStr, yLabelStr, titleStr; Strings for horizoltal axis, vertical
axis, and title
faceColor: color in text (e.g., 'blue') or value (e.g., [0,0,1])

Cite As

Eiji Konaka (2024). barChartRace (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Simulation 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

Include output sample.


Fix typo.