COVID-19 World Spread Animation

version 1.5.5 (10.4 MB) by Joshua McGee
This code will generate an animation displaying the spread of COVID-19 and save it as a video file. Data is obtained and processed from HDX.


Updated Thu, 30 Apr 2020 23:37:25 +0000

View License

This code receives and processes data from the HDX and creates a geobubble and graphical plot of the spread of the COVID-19 virus. The plots are updated for each date and used to generate movie displaying the spread of the virus across the globe.

A plot (with the top 10 cases by countries) can be displayed next to the geobubble by setting 'live_plot_enabled' to 1. This can be disabled by setting it to 0.

NOTE: Compatibility issues have been fixed. Please let me know if you find otherwise.

Cite As

Joshua McGee (2022). COVID-19 World Spread Animation (, MATLAB Central File Exchange. Retrieved .

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

Inspired by: tight_subplot(Nh, Nw, gap, marg_h, marg_w)

Inspired: LogliveplotCOVID19

Community Treasure Hunt

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

Start Hunting!