File:Reykjavik population graph 1889-2016.svg

Original file (SVG file, nominally 720 × 450 pixels, file size: 30 KB)

Summary

Description
English: Graph that shows the population of Reykjavík over time.
Íslenska: Graf sem sýnir íbúafjölda Reykjavíkur á milli áranna.
Date
Source Own work
Author Árni Dagur
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

import pandas as pd import matplotlib.pyplot as plt  print('Styles:', plt.style.available) plt.rcdefaults() plt.style.use('seaborn-white')  plt.rcParams['lines.linewidth'] = 2 plt.rcParams['lines.color'] = 'red' plt.rcParams['font.family'] = 'serif' plt.rcParams['font.serif'] = 'Ubuntu' plt.rcParams['font.monospace'] = 'Ubuntu Mono' plt.rcParams['font.size'] = 16 plt.rcParams['axes.labelsize'] = 16 plt.rcParams['axes.labelweight'] = 'bold' plt.rcParams['axes.titlesize'] = 16 plt.rcParams['xtick.labelsize'] = 13 plt.rcParams['ytick.labelsize'] = 12 plt.rcParams['legend.fontsize'] = 15 plt.rcParams['figure.titlesize'] = 14 plt.rcParams['figure.figsize'] = 8, 5  df = pd.read_csv('data.csv', sep=',').set_index('Year')['Value']  fig, ax = plt.subplots()  ticks = [] for n in range(1896,2017,10):     ticks.append(n)  ax.set_xticks(ticks) ax.plot(df, 'royalblue')  ax.tick_params(axis='both', direction='in', color='black', top=False, right=False, width=1, length=5) ax.grid(linestyle='-', linewidth=1, alpha=0.5)  plt.gcf().autofmt_xdate() plt.tight_layout()   plt.savefig('Reykjavik_population_graph_1889-2016.svg') 

Data source: Statistics Iceland

Licensing

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.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

10 June 2017

File history

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

Date/TimeThumbnailDimensionsUserComment
current04:45, 10 June 2017Thumbnail for version as of 04:45, 10 June 2017720 × 450 (30 KB)ArniDagurUser created page with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata