File:LiverpoolPopulationHistory.svg

Original file(SVG file, nominally 720 × 405 pixels, file size: 29 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary edit

Description
English: The population of Liverpool from 1801 to 2011 using data from the England & Wales Census.
Date
Source Own work
Author Thebrid

Licensing edit

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Code & data used to generate file edit

#!/usr/bin/python

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as tkr

def formatNumbers(x, pos):
	return "{number:1,.0f}".format(number=x)

data = [
         (1801, 82430),
         (1811, 101065),
         (1821, 129007),
         (1831, 180222),
         (1841, 255492),
         (1851, 320513),
         (1861, 429881),
         (1871, 539248),
         (1881, 648616),
         (1891, 659967),
         (1901, 711030),
         (1911, 766044),
         (1921, 805066),
         (1931, 846101),
         (1941, 806271),
         (1951, 768337),
         (1961, 683133),
         (1971, 607454),
         (1981, 503726),
         (1991, 480196),
         (2001, 439476),
         (2011, 466415),
       ]

years = []
values = []

for datum in data:
	years.append(datum[0])
	values.append(datum[1])

yearLabels = np.arange(len(years))
offset = 0.35

fig, ax = plt.subplots()
fig.set_size_inches(8, 4.5)

yearBars = ax.bar(yearLabels, values, color="r")
ax.set_xticks(yearLabels + offset)
ax.set_xticklabels(years, rotation=90)

plt.tick_params(axis="x", which="both", bottom="off", top="off")
ax.yaxis.set_major_formatter(tkr.FuncFormatter(formatNumbers))
plt.savefig("LiverpoolPopulationHistory.svg")

File history

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

Date/TimeThumbnailDimensionsUserComment
current22:54, 28 March 2015Thumbnail for version as of 22:54, 28 March 2015720 × 405 (29 KB)Thebrid (talk | contribs)Change aspect ratio to 16:9
22:48, 28 March 2015Thumbnail for version as of 22:48, 28 March 2015720 × 540 (29 KB)Thebrid (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata