跳至內容

File:Iran-age-pyramid.svg

頁面內容不支援其他語言。
這個檔案來自維基共享資源
維基百科,自由的百科全書

原始檔案(SVG 檔案,表面大小:810 × 450 像素,檔案大小:39 KB)


摘要

描述
English: Demography of Iran in 2011. Source: Statistical Centre of Iran http://www.amar.org.ir/Portals/1/Iran/90.pdf
日期
來源 自己的作品
作者 Psirus
SVG開發
InfoField
 
SVG檔案的原始碼無效,因為出現1個錯誤。
 
vector image使用Matplotlib創作。
原始碼
InfoField

Python code

# coding: utf-8
#!/usr/bin/env python
import matplotlib.pyplot as plt
import numpy as np

# first column is total number of people
# second column is percentage of the population
data = np.array([
[6232552, 8.29],
[5657791, 7.53],
[5671435, 7.55],
[6607043, 8.79],
[8414497, 11.20],
[8672654, 11.54],
[6971924, 9.28],
[5571018, 7.41],
[4906749, 6.53],
[4030481, 5.36],
[3527408, 4.69],
[2680119, 3.57],
[1862907, 2.48],
[1343731, 1.79],
[1119968, 1.49],
[913531, 1.22],
[919539, 1.22]])

labels = [
'0-4',
'5-9',
'10-14',
'15-19',
'20-24',
'25-29',
'30-34',
'35-39',
'40-44',
'45-49',
'50-54',
'55-59',
'60-64',
'65-69',
'70-74',
'75-79',
'80 and over']

# Prepare axis
fig = plt.figure(figsize=(9, 5))
ax = fig.add_subplot(111)

y_pos = np.arange(len(labels))
percentages = data[:, 1]

ax.barh(y_pos, percentages, align='center')
plt.yticks(y_pos, labels)
plt.axis('tight')

plt.title('Iranian Demography 2011')
plt.xlabel('Percentage')
plt.savefig('iran-demography.svg', transparent=True)

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
w:zh:創用CC
姓名標示 相同方式分享
您可以自由:
  • 分享 – 複製、發佈和傳播本作品
  • 重新修改 – 創作演繹作品
惟需遵照下列條件:
  • 姓名標示 – 您必須指名出正確的製作者,和提供授權條款的連結,以及表示是否有對內容上做出變更。您可以用任何合理的方式來行動,但不得以任何方式表明授權條款是對您許可或是由您所使用。
  • 相同方式分享 – 如果您利用本素材進行再混合、轉換或創作,您必須基於如同原先的相同或兼容的條款,來分布您的貢獻成品。

說明

添加單行說明來描述出檔案所代表的內容

在此檔案描寫的項目

描繪內容

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸使用者備⁠註
目前2013年9月16日 (一) 19:37於 2013年9月16日 (一) 19:37 版本的縮圖810 × 450(39 KB)Psirus"80 and over" was cut off. Corrected.
2013年9月16日 (一) 19:36於 2013年9月16日 (一) 19:36 版本的縮圖720 × 450(39 KB)PsirusUser created page with UploadWizard

下列2個頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案:

詮釋資料