MAKE A MEME View Large Image LiverpoolPopulationHistory.svg en The population of Liverpool from 1801 to 2011 using data from the England Wales Census 2015-03-28 own Thebrid other versions cc-zero Code data used to generate file <source lang python > /usr/bin/python ...
View Original:LiverpoolPopulationHistory.svg (576x324)
Download: Original    Medium    Small Thumb
Courtesy of:commons.wikimedia.org More Like This
Keywords: LiverpoolPopulationHistory.svg en The population of Liverpool from 1801 to 2011 using data from the England Wales Census 2015-03-28 own Thebrid other versions cc-zero Code data used to generate file <source lang python > /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 datum0 values append datum1 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 </source> Uploaded with UploadWizard Uncategorized 2015 March 28
Terms of Use   Search of the Day