File:Bevölkerungsentwicklung Kaufbeuren.svg

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

Original file(SVG file, nominally 720 × 270 pixels, file size: 58 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Population statistics from Kaufbeuren, 1973-2012
Deutsch: Bevölkerungsentwicklung von Kaufbeuren, 1973-2012
Date
Source Own work
Author Psirus
SVG development
InfoField
 
The source code of this SVG is invalid due to an error.
 
This W3C-invalid plot was created with Matplotlib.
Source code
InfoField

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

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current12:02, 3 June 2013Thumbnail for version as of 12:02, 3 June 2013720 × 270 (58 KB)Psirus (talk | contribs)Added grid and transparency, changes aspect ratio
11:45, 3 June 2013Thumbnail for version as of 11:45, 3 June 2013720 × 540 (59 KB)Psirus (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

Metadata