File:Chinapop.svg
From Wikipedia, the free encyclopedia

No higher resolution available.
[edit] Summary
| Public domainPublic domainfalsefalse |
 |
I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.
Public domainPublic domainfalsefalse
|
[edit] Sources
U.S. Census bureau, International database, [1]
[edit] Gnuplot
Version 4.2 patchlevel 2
# POPULATION PYRAMID
scale = 1000000 # ADJUST AS NECESSARY
# The increment would better be automatic, but "set xtics" doesn't
# allow to specify start only.
increment = 10 # ADJUST THIS AS NECESSARY
set title "China - 2009"
# Plot to dummy device and retrieve the male/female population range
set term unknown
set autoscale xfix
plot "china2009.txt" using ($2/scale):1, "china2009.txt" using (-$3/scale):1
range_male = (GPVAL_X_MAX > -GPVAL_X_MIN) ? GPVAL_X_MAX : -GPVAL_X_MIN
range_female = range_male
central_gap = (range_male + range_female) * 0.06 # ADJUST AS NECESSARY
set term svg size 800,500 dynamic font "sans-serif"
set style data boxxyerrorbars
set style fill solid 0.25 border
# Y axis has no lines and tics, only labels which are shifted to bar medians
set yzeroaxis linewidth 0
set ytics axis scale 0
set ytics offset 0, second 1.8
set autoscale yfix
# X axis is labeled from zero onwards, with the given increment
set xtics nomirror 0,increment
set xlabel "Population (millions)"
set key right Right
plot [-range_female-central_gap:range_male]\
"china2009.txt" using (0):(0):(0):($3/scale):1:($1+4.8) title "Females" linetype rgb "#FF0000"
# Remove Y labels, we already have them from the previous plot.
set format y ""
set key left Left reverse
plot [range_female:-central_gap-range_male]\
"china2009.txt" using (0):(0):(0):($2/scale):1:($1+4.8) title "Males" linetype rgb "#0000FF"
#"Midyear Population by Age and Sex for China"
#Age "Male Population" "Female Population"
0 40516152 34695655
5 41347074 34980960
10 48800919 42314154
15 57922621 52041688
20 60617499 56640842
25 51546942 48822129
30 49349671 47232809
35 62269539 59387454
40 61990087 59063706
45 46195684 44384976
50 43126682 40763133
55 38552648 37330255
60 26404372 25368901
65 19680421 19130240
70 15747177 16122226
75 10754214 11999674
80 5371220 6941742
85 1883174 3022617
90 358956 756105
95 39188 108857
100 1882 7338
File history
File usage
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):
Global file usage
The following other wikis use this file:
- Usage on ar.wikipedia.org
- Usage on bg.wikipedia.org
- Usage on de.wikipedia.org
- Usage on es.wikipedia.org
- Usage on eu.wikipedia.org
- Usage on fr.wikipedia.org
- Usage on hr.wikipedia.org
- Usage on it.wikipedia.org
- Usage on ja.wikipedia.org
- Usage on ka.wikipedia.org
- Usage on lt.wikipedia.org
- Usage on mk.wikipedia.org
- Usage on pl.wikipedia.org
- Usage on vi.wikipedia.org
- Usage on zh.wikipedia.org
This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.
If the file has been modified from its original state, some details may not fully reflect the modified file.