File:Bevölkerungsentwicklung Kaufbeuren.svg
Summary
| Description |
English: Population statistics from Kaufbeuren, 1973-2012 Deutsch: Bevölkerungsentwicklung von Kaufbeuren, 1973-2012 |
| Date | |
| Source |
Own work |
| Author | Psirus |
| SVG development | |
| Source code | Python code# coding: utf-8
#!/usr/bin/env python
import matplotlib.pyplot as plt
import numpy as np
data = np.array([
[1973, 44906],
[1974, 44608],
[1975, 44559],
[1976, 44217],
[1977, 43844],
[1978, 43732],
[1979, 43616],
[1980, 43306],
[1981, 42933],
[1982, 42765],
[1983, 42371],
[1984, 41987],
[1985, 41717],
[1986, 41570],
[1987, 41602],
[1988, 40596],
[1989, 40887],
[1990, 42040],
[1991, 42730],
[1992, 43328],
[1993, 43807],
[1994, 44260],
[1995, 44417],
[1996, 44168],
[1997, 43587],
[1998, 43281],
[1999, 43239],
[2000, 43378],
[2001, 43777],
[2002, 44192],
[2003, 44150],
[2004, 44180],
[2005, 43845],
[2006, 43549],
[2007, 43598],
[2008, 43514],
[2009, 43324],
[2010, 43199],
[2011, 43149],
[2012, 43237]])
# Prepare axis
fig = plt.figure(figsize=(8, 3))
ax = fig.add_subplot(111)
# Plot data
years = data[:, 0]
people = data[:, 1]
baseline = 40000
ax.fill_between(year, people, y2=baseline, color='#000066', edgecolor='black',
alpha=0.6, lw=2)
# Cosmetics
plt.xlim(min(year), max(year))
ax.minorticks_on()
fig.subplots_adjust(bottom=0.15)
plt.grid()
plt.title(u'Bevölkerungsentwicklung in Kaufbeuren')
plt.xlabel('Jahr')
plt.ylabel('Einwohner')
# Save figure
plt.savefig('KaufbeurenBevoelkerung.svg', transparent=True)
|
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.