File:US opinion same sex marriage legality.svg

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

Original file (SVG file, nominally 720 × 540 pixels, file size: 66 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Plot of U.S. public opinion in favor or against legal same-sex marriage. Data retrieved from sources within Public opinion of same-sex marriage in the United States
Date
Source Own work
Author Askewchan

Generated using matplotlib in Python from the following code:

   from matplotlib.pyplot import *
   from numpy import loadtxt
   import datetime as dt
   days, months, years, yes, no, unsure = \
           loadtxt('all.txt',unpack=True,dtype=int)
   dates = [dt.date(yr,mo,dy) for dy,mo,yr in zip(days,months,years)]
   fig = figure()
   plot(dates,yes,'.b',label='Yes')
   plot(dates,no,'.r',label='No')
   plot(dates,unsure,'.k',label='Unsure')
   legend()
   title('Opinion of Same-Sex Marriage Legality')
   xlabel('Date of Poll')
   xlim(dt.date(1996,1,1),dt.date(2008,12,31))
   ylabel('Percentage or Respondents')
   ylim(0,100)
   fig.autofmt_xdate()
   savefig('same_sex_marriage_acceptance.svg')

using the following data:

   #cnn/usa today/gallup poll
   #"Do you think marriages between homosexuals should or should not be
   #  recognized by the law as valid, with the same rights as traditional marriages?"
   #  N=492, MoE ± 5 (Form A)
   #  "Y" means "Should Be Valid"; "N" means "Should Not Be Valid"; and "U" means "Unsure".
   #day mo yr  Y   N   U
   1  5  2005  39  56  5
   20 3  2005  28  68  4
   21 7  2004  32  62  6
   7  3  2004  33  61  6
   17 2  2004  32  64  4
   8  2  2004  36  59  5
   1  12 2003  31  65  4
   1  10 2003  35  61  4
   1  6  2003  39  55  6
   1  1  2000  34  62  4
   1  2  1999  35  62  3
   1  3  1996  27  68  5
    
    
   #The Pew Research Center/Pew Forum on Religion & Public Life survey poll asking:
   #"Do you strongly favor, favor, oppose, or strongly oppose
   #  allowing gays and lesbians to marry legally?"
   #  (Margin of error three percent)
   #d m yr    Favor   Oppose  Unsure
   25 5  2008    38     49     13
   1  8  2007    36     55     9
   12 3  2006    39     51     10
   17 7  2005    36     53     11
   16 12 2004    32     61     7
   10 8  2004    29     60     11
   1  7  2004    32     56     12
   1  3  2004    32     59     9
   1  2  2004    30     63     7
   1  11 2003    30     62     8
   1  10 2004    30     58     12

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
current19:13, 26 June 2011Thumbnail for version as of 19:13, 26 June 2011720 × 540 (66 KB)Askewchan (talk | contribs){{Information |Description ={{en|1=Plot of U.S. public opinion in favor or against legal same-sex marriage. Data retrieved from sources within [[wikipedia:Public_opinion_of_same-sex_marriage_in_the_United_States|Public opinion of same-sex marriage in t

There are no pages that use this file.