Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Creating Tornado diagrams in Matlab, how can I do this?

321 views
Skip to first unread message

T

unread,
Aug 31, 2011, 8:40:14 PM8/31/11
to
Hi,

I want to plot a Tornado diagram

http://en.wikipedia.org/wiki/Tornado_diagram

in Matlab. Can someone please tell me how to do this.


Cheers,

Tony

TideMan

unread,
Aug 31, 2011, 11:05:18 PM8/31/11
to

Why didn't you ask Google?
I found a free sensitivity analysis toolbox with exactly what you
want.

T

unread,
Sep 1, 2011, 1:50:34 AM9/1/11
to
On Sep 1, 1:05 pm, TideMan <mul...@gmail.com> wrote:
> I found a free sensitivity analysis toolbox with exactly what you
> want.

Thanks TideMan for the answer. I should have also said in my request
that I am looking for a solution that is either:

1) something based on barh/patch/etc would be great, or
2) a lightweight standalone function

Many thanks for your help,

Tony

Steven_Lord

unread,
Sep 1, 2011, 9:32:44 AM9/1/11
to

"T" <matla...@gmail.com> wrote in message
news:919f9acf-89cd-44b2...@x14g2000prn.googlegroups.com...

SORT first, then BARH?

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Daniel Underwood

unread,
Apr 2, 2013, 8:39:07 PM4/2/13
to
> SORT first, then BARH?
>
> --
> Steve Lord
> sl...@mathworks.com
> To contact Technical Support use the Contact Us link on
> http://www.mathworks.com

Would someone please give me an example of using the BARH approach? I'm having a hard time figuring out how to generate a tornado diagram using MATLAB.

For example, suppose I have the code:

factors = [1 2 3 4];
leftValues = [6.3 6.2 5.9 5.9];
middleValues = [6.5 6.5 6.5 6.5];
rightValues = [6.9 6.7 6.6 6.9];

I wish to have a graph centered horizontally at 6.5, and I wish to have 4 horizontal bars, the i-th bar going from the i-th value in "leftValues" to the i-th value in "rightValues".

How could I do this in MATLAB?
0 new messages