File:Saudipop.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (SVG file, nominally 800 × 600 pixels, file size: 17 KB)

Render this image in .

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Population pyramid of Saudi Arabia, 2017
Date
Source Own work by uploader
 
This W3C-unspecified plot was created with Gnuplot.
Author Demmo

Licensing

[edit]
Public domain 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.

Sources

[edit]

U.S. Census bureau, International database, [1]

Gnuplot

[edit]

Version 4.2 patchlevel 5

Gnuplot source
# POPULATION PYRAMID
# Script last modified 03-Jun-2010

scale = 1000000 # ADJUST AS NECESSARY
# The increment would better be automatic, but "set xtics" doesn't
# allow to specify start only.
increment = 0.5 # ADJUST THIS AS NECESSARY
gap_width = 0.11 # ADJUST THIS AS NECESSARY

# ADJUST TITLES AS NECESSARY
set title "Population of Saudi Arabia (2009)"
set xlabel "Population (in millions)"

# Input file contains comma-separated values fields
set datafile separator ","

# Plot to dummy device and retrieve the male/female population range
set term unknown

set autoscale xfix
plot "data.csv" using ($4/scale):2, "data.csv" using (-$5/scale):2

range_male = (GPVAL_X_MAX > -GPVAL_X_MIN) ? GPVAL_X_MAX : -GPVAL_X_MIN
range_female = range_male
central_gap = (range_male + range_female) * gap_width

#set term png transparent truecolor size 640,400
set term svg size 800,500 dynamic font "sans-serif"

set style data boxxyerrorbars
set style fill solid 0.5 border

# Y axis is invisible
unset ytics
set autoscale yfix

# X axis is labeled from zero onwards, with the given increment
set xtics nomirror 0,increment

plot [-range_female-central_gap:range_male]\
 "data.csv" using (0):2:(0):($5/scale):($2+1):($2+5)\
  title "Females" linetype rgb "#aa3f74",\
 "data.csv" using (-central_gap/2):($2+2.5):2 title "" with labels font "sans-serif,10"
 
set key left Left reverse
 
plot [range_female:-central_gap-range_male]\
 "data.csv" using (0):2:(0):($4/scale):($2+1):($2+5)\
  title "Males" linetype rgb "#296dcc"

CSV pyramid data file as retrieved from US Census Bureau International Database, without modifications.

Data file "data.csv"
"Midyear Population, by Age and Sex for Saudi Arabia"
Year,Age,"Both Sexes Population","Male Population","Female Population"
2009,Total,28686633,15528726,13157907
2009,0-4,4035826,2060914,1974912
2009,5-9,3720207,1895873,1824334
2009,10-14,3142034,1600666,1541368
2009,15-19,2604866,1336696,1268170
2009,20-24,2689374,1491510,1197864
2009,25-29,2983828,1762777,1221051
2009,30-34,2928891,1765496,1163395
2009,35-39,2379313,1426403,952910
2009,40-44,1340398,737173,603225
2009,45-49,820850,420676,400174
2009,50-54,594843,298869,295974
2009,55-59,425847,211926,213921
2009,60-64,313365,156506,156859
2009,65-69,257589,131146,126443
2009,70-74,197278,101156,96122
2009,75-79,131864,69520,62344
2009,80-84,74199,39447,34752
2009,85-89,32942,16331,16611
2009,90-94,10874,4796,6078
2009,95-99,2048,782,1266
2009,100+,197,63,134

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current17:25, 26 October 2017Thumbnail for version as of 17:25, 26 October 2017800 × 600 (17 KB)Delphi234 (talk | contribs)Updated for 2017
08:14, 3 June 2010Thumbnail for version as of 08:14, 3 June 2010512 × 320 (23 KB)Demmo (talk | contribs)Updated for 2009
21:39, 14 June 2006Thumbnail for version as of 21:39, 14 June 20061,094 × 665 (158 KB)Aude (talk | contribs)Population pyramid - Saudi Arabia (2006) Data source: U.S. Census Bureau, [http://www.census.gov/ipc/www/idbpyr.html IDB Population Pyramids] Graph created by User:Kmf164 Category:Demographics of Saudi Arabia Category:Kmf164-maps [[Category

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata