How to draw population pyramid graph like this?

Use this forum to post Vensim related questions.
Post Reply
lynchyml
Senior Member
Posts: 70
Joined: Wed Aug 26, 2009 8:36 am

How to draw population pyramid graph like this?

Post by lynchyml »

rt
Attachments
population pyramid.jpg
population pyramid.jpg (79.24 KiB) Viewed 5711 times
karankhosla
Senior Member
Posts: 107
Joined: Wed Nov 26, 2008 6:12 am

Post by karankhosla »

I'd presume that you'd have to:
1) build age-specific cohorts for each of the two genders [see Business Dynamics Chapter 12];
2) run your model;
3) export the raw data into excel;
4) create a graph for the simulation results at the time in question.

Best

Karan
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

Hi Karan,

That is a Vensim graph. Use a definitions such as

:BAR-GRAPH POPPYR
:TITLE Population Pyramids
:WIP
:Y-MIN 0
:Y-MAX 0.0001
:HORIZONTAL
:FORCE
:SOFT-BOUNDS
:SUBTITLE Female
:OSUBTITLE Male
:VAR population by gender and age[FEMALE,age]
:OVAR population by gender and age[MALE,age]

The attached model displays this and is set up to evolve the pyramid as it simulations - lots more age groups in this one than in the graph you displayed.
Attachments
dgraph0.vmf
(24.53 KiB) Downloaded 615 times
karankhosla
Senior Member
Posts: 107
Joined: Wed Nov 26, 2008 6:12 am

Post by karankhosla »

Thanks Bob, that's quite useful!
lynchyml
Senior Member
Posts: 70
Joined: Wed Aug 26, 2009 8:36 am

Post by lynchyml »

thank you very much!, but I didnot find where to do the definitions


Originally posted by bob@vensim.com
Hi Karan,

That is a Vensim graph. Use a definitions such as

:BAR-GRAPH POPPYR
:TITLE Population Pyramids
:WIP
:Y-MIN 0
:Y-MAX 0.0001
:HORIZONTAL
:FORCE
:SOFT-BOUNDS
:SUBTITLE Female
:OSUBTITLE Male
:VAR population by gender and age[FEMALE,age]
:OVAR population by gender and age[MALE,age]

The attached model displays this and is set up to evolve the pyramid as it simulations - lots more age groups in this one than in the graph you displayed.
[Edited on 11-7-2009 by lynchyml]

[Edited on 11-7-2009 by lynchyml]
Attachments
Snap1.jpg
Snap1.jpg (60.68 KiB) Viewed 5663 times
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

See Chapter 15 of the Reference Manual. The graph definitions need to be entered in text files the opened using the Open... button on the graphs tab of the control panel.
Post Reply