File:UKGeneralElection2010MoriPolls.svg

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

Original file (SVG file, nominally 1,058 × 450 pixels, file size: 93 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Graph of Ipsos MORI UK general election opinion polls, created from data at Opinion polling in the next United Kingdom general election.
Source Own work
Author Thebrid
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

Python SVG code
#!/usr/bin/env python
# -*- coding: utf-8 -*-
 
from pylab import *
import datetime
 
rc('font', family='sans-serif')
rc('figure', figsize=(11.75,5))
 
seriesDate = [date2num(datetime.date(2005, 6,20)),
              date2num(datetime.date(2005, 7,18)),
              date2num(datetime.date(2005, 8,15)),
              date2num(datetime.date(2005, 9,26)),
              date2num(datetime.date(2005,10,25)),
              date2num(datetime.date(2005,11,22)),
              date2num(datetime.date(2005,12,12)),
              date2num(datetime.date(2006, 1,23)),
              date2num(datetime.date(2006, 2,20)),
              date2num(datetime.date(2006, 3,21)),
              date2num(datetime.date(2006, 4,22)),
              date2num(datetime.date(2006, 5,30)),
              date2num(datetime.date(2006, 6,26)),
              date2num(datetime.date(2006, 7,24)),
 
              date2num(datetime.date(2006, 9, 6)),
              date2num(datetime.date(2006,10,16)),
              date2num(datetime.date(2006,11,14)),
              date2num(datetime.date(2006,12,12)),
              date2num(datetime.date(2007, 1,29)),
 
              date2num(datetime.date(2007, 3,15)),
              date2num(datetime.date(2007, 4,25)),
              date2num(datetime.date(2007, 5,22)),
              date2num(datetime.date(2007, 6,20)),
              date2num(datetime.date(2007, 7,17)),
              date2num(datetime.date(2007, 8,29)),
              date2num(datetime.date(2007, 9,26)),
              date2num(datetime.date(2007,10,23)),
 
              date2num(datetime.date(2007,12, 7)),
              date2num(datetime.date(2008, 1,22)),
              date2num(datetime.date(2008, 2,26)),
              date2num(datetime.date(2008, 3,18)),
              date2num(datetime.date(2008, 4,22)),
              date2num(datetime.date(2008, 5,20)),
              date2num(datetime.date(2008, 6,15)),
              date2num(datetime.date(2008, 7,20)),
              date2num(datetime.date(2008, 8,17)),
              date2num(datetime.date(2008, 9,14)),
              date2num(datetime.date(2008,10,19)),
              date2num(datetime.date(2008,11,16)),
              date2num(datetime.date(2008,12,11)),
              date2num(datetime.date(2009, 1,18)),
              date2num(datetime.date(2009, 2,15)),
              date2num(datetime.date(2009, 3,15)),
              date2num(datetime.date(2009, 4,19)),
              date2num(datetime.date(2009, 5,31)),
              date2num(datetime.date(2009, 6,21)),
              date2num(datetime.date(2009, 7,19)),
              date2num(datetime.date(2009, 8,23)),
              date2num(datetime.date(2009, 9,27)),
              date2num(datetime.date(2009,10,18)),
              date2num(datetime.date(2009,11,15)),
              date2num(datetime.date(2009,12,13)),
              date2num(datetime.date(2010, 1,28)),
              date2num(datetime.date(2010, 2,22)),
              date2num(datetime.date(2010, 3,22)),
             ]
             
seriesCon = [                     29, 28, 31, 29, 34, 32, 40,
              40, 35, 34, 30, 41, 36, 36,     35, 35, 35, 37,
              39,     41, 38, 37, 36, 35, 36, 31, 40,     42,
              37, 39, 40, 40, 45, 45, 47, 48, 52, 45, 40, 41,
              44, 48, 42, 41, 40, 38, 40, 43, 36, 43, 37, 43,
              40, 37, 35
            ]
 
seriesLab = [                     42, 41, 39, 39, 40, 42, 31,
              38, 38, 39, 30, 31, 33, 32,     36, 37, 33, 36,
              35,     33, 31, 35, 39, 41, 41, 44, 41,     35,
              38, 37, 35, 31, 32, 28, 27, 24, 24, 30, 37, 36,
              30, 28, 32, 28, 18, 21, 24, 26, 24, 26, 31, 26,
              32, 32, 30
            ]
  
seriesLib = [                     21, 25, 24, 25, 21, 19, 20,
              17, 20, 19, 25, 18, 21, 24,     19, 18, 20, 18,
              19,     17, 20, 18, 15, 15, 16, 15, 13,     14,
              16, 16, 18, 19, 14, 16, 15, 16, 12, 14, 12, 11,
              17, 17, 14, 22, 18, 19, 18, 17, 25, 19, 17, 20,
              16, 19, 21
            ]
 
seriesOth = [                      8,  6,  6,  7,  5,  7,  9,
               5,  7,  8, 15, 10, 10,  8,     10, 10, 12,  9,
               7,      9, 11, 10, 10,  9,  7, 10,  6,      9,
               9,  8,  7, 10,  9, 11, 11, 12, 12, 11, 11, 12,
               9,  7, 11,  9, 24, 23, 18, 14, 15, 11, 15, 11,
              12, 12, 14
            ]
 
 
# red-green colourblind friendly
plot_date(seriesDate, seriesCon, 'o-', lw=3, color='blue')
plot_date(seriesDate, seriesLab, 'o-', lw=3, color='red')
plot_date(seriesDate, seriesLib, 'o-', lw=3, color='yellow')
plot_date(seriesDate, seriesOth, 'o-', lw=3, color='grey')
 
xlabel('Date')
ylabel('% Vote')
grid(True)
 
savefig('UKGeneralElection2010MoriPolls.svg')

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following licenses:
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.
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
You may select the license of your choice.

File history

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

Date/TimeThumbnailDimensionsUserComment
current03:03, 25 March 2010Thumbnail for version as of 03:03, 25 March 20101,058 × 450 (93 KB)Wereon (talk | contribs)updated
14:18, 15 March 2010Thumbnail for version as of 14:18, 15 March 20101,058 × 450 (91 KB)Wereon (talk | contribs)updated graph
11:17, 29 December 2009Thumbnail for version as of 11:17, 29 December 20091,058 × 450 (88 KB)Thebrid (talk | contribs)Added details of polls up to December 2009.
16:42, 31 August 2009Thumbnail for version as of 16:42, 31 August 20091,080 × 720 (83 KB)Thebrid (talk | contribs)Update for August 09
12:03, 26 July 2009Thumbnail for version as of 12:03, 26 July 20091,080 × 720 (80 KB)Thebrid (talk | contribs){{Information |Description={{en|1=Graph of Ipsos MORI UK general election opinion polls, created from data at w:Opinion_polling_in_the_next_United_Kingdom_general_election.}} |Source=Own work by uploader |Author=Thebrid |Date= |Permis

There are no pages that use this file.