How to plot a tornado chart in Matlab?

I want to perform a sensitive analysis for my model, therefore I need to plot a tornado chart. Can you help me to plot a chart like the following image on Matlab?

 Réponse acceptée

Star Strider
Star Strider le 26 Juin 2016

1 vote

Use the barh function with the 'BaseValue' name-value pair argument.

2 commentaires

Tien Tran
Tien Tran le 26 Juin 2016
Hi Star I have tried this function, but it is not symmetrical as I expected. Can you give me a code sample?
Star Strider
Star Strider le 26 Juin 2016
See if the 'stacked' option instead of the default 'grouped' option gives you the result you want.
See the documentation for barh, bar and ‘Bar Series Properties’ (see the link on the page) for all the available options.

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by