Stuart’s MATLAB Videos

Watch and Learn

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Flow chart shows which visualization to use 5

Posted by Doug Hull,

Nathan over at had a post that explains what visualization to use in different situations. Ultimately he linked to this chart from Andrew Abela of The Extreme Presentation(tm) Method

Click for original version
The version displayed below was modified with permission of Andrew.

MATLAB flowchart
Looking at this, I wondered if I could make all of those visualizations in MATLAB. The answer was yes, with a little help from MATLAB Central.

Download this .zip and run main.m to see MATLAB create all those charts with simple data.


are included in the zip for convenience.

Many of these visualizations had dedicated functions to do that exact plot, some required some data massaging (like the “100% stacked bar plots” that normalized each stacked bar series to have the same sum) and some required the addition of some lines (like the connected bar charts).

This was a fun exercise in reproducing all these plots in MATLAB. Do you have some favorite plots that are not shown here? Do you want to make some dedicated functions to create those various bar charts that needed the most fiddling with?

5 CommentsOldest to Newest

dhull replied on : 1 of 5
I will post this group of files next week. I am hoping someone will make the bar chart mods and I would like to include them in the bundle. -Doug
Daniel Armyr replied on : 2 of 5
Hi. This was a very inspiring post. It especially opened my eyes to polar plots for cyclic data which I work with regularly. Unfortunately, it also opened my eyes to how hopelessly behing the matlab polar plots are to their rectangular cousins. The file-exchange provides some hot-fixes, but if you open up the results of any of them in the interactive plot editor you quickly realize the limitations. --DA
Marijn replied on : 3 of 5
There is a great variety, but what about combining grouped and stacked bar graphs? I haven't come across that yet.. Thanks.
Shalin replied on : 5 of 5
How about a problem --> solution more than searching for a answer through the diagram. I found this really helpful Thanks

Add A Comment

Your email address will not be published. Required fields are marked *

Preview: hide