File:Vladimir Putin approval (Levada, 2020).png

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

Original file(1,920 × 1,046 pixels, file size: 95 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Chart of Vladimir Putin approval for the whole data set published by Levada Centr https://www.levada.ru/indikatory/odobrenie-organov-vlasti/
Date
Source Own work
Author Cloud200

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International 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.

Code[edit]

Python3 code used to generate this graph. Data is copied manually from Levada.ru and saved into two separate ASCII files:

  • approval.txt - approval (%) formatted as comma-separated integers (31,53,65...)
  • dates.txt - dates of the corresponding approval polls formatted as comma-separated MM.YYYY strings (08.1999,09.1999,10.1999,11.1999...)
from numpy import loadtxt
from matplotlib import pyplot as plt

approval = loadtxt('approval.txt',delimiter=',')
dates = loadtxt('dates.txt',delimiter=',',dtype=str)
dates2 = [datetime.datetime.strptime(x, '%m.%Y') for x in dates]
x = dates2
y = approval
plt.plot(x,y)
plt.ylabel('Approval %')
plt.title('Vladimir Putin approval percentage (Levada, closed question)')
plt.grid(True)
plt.show()

File history

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

Date/TimeThumbnailDimensionsUserComment
current22:47, 25 May 2020Thumbnail for version as of 22:47, 25 May 20201,920 × 1,046 (95 KB)Cloud200 (talk | contribs)Cross-wiki upload from en.wikipedia.org

The following page uses this file:

File usage on other wikis

The following other wikis use this file:

Metadata