File:Wiktionary Teestube Editfrequenz.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 800 × 290 pixels. Other resolutions: 320 × 116 pixels | 640 × 232 pixels | 1,024 × 371 pixels | 1,280 × 463 pixels | 2,560 × 926 pixels | 1,528 × 553 pixels.
Original file (SVG file, nominally 1,528 × 553 pixels, file size: 26 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionWiktionary Teestube Editfrequenz.svg |
Deutsch: Anzahl der Bearbeitungen der Seite [[::Wikt:de:Wiktionary:Teestube|Wiktionary:Teestube]] in je 7 Tagen im Zeitverlauf. Stand: 01.09.2014 |
Date | |
Source | Own work |
Author | Kronf |
SVG development InfoField | This plot was created with Matplotlib. |
Source code InfoField | Python code# python
# -*- coding: utf8 -*-
import urllib2
import json
from datetime import datetime
from datetime import timedelta
import matplotlib.pyplot
import matplotlib.dates
page = 'Wiktionary:Teestube'
totalcount = 12000
remcount = totalcount
rvcontinue = ''
revlist = []
while remcount > 0:
if remcount > 500:
querycount = 500
remcount -= querycount
else:
querycount = remcount
remcount = 0
url = 'http://de.wiktionary.org/w/api.php?action=query&prop=revisions&format=json&rvprop=timestamp&rvlimit='+str(querycount)+'&rvdir=newer'
if rvcontinue != '':
url += '&rvcontinue='+rvcontinue
url += '&titles='+page
response = urllib2.urlopen(url)
rawdata = response.read()
jsondata = json.loads(rawdata)
revlist += jsondata['query']['pages'].values()[0]['revisions']
try:
rvcontinue = str(jsondata['query-continue']['revisions']['rvcontinue'])
except:
print 'Page history is complete.'
break
weeks = []
freqs = []
week = datetime.strptime(revlist[0]['timestamp'],'%Y-%m-%dT%H:%M:%SZ')
nextweek = week + timedelta(weeks=1)
weeks.append(week)
freqs.append(0)
for rev in revlist:
if datetime.strptime(rev['timestamp'],'%Y-%m-%dT%H:%M:%SZ') < nextweek:
freqs[-1] += 1
else:
week = nextweek
nextweek += timedelta(weeks=1)
weeks.append(week)
freqs.append(1)
weeksnum = matplotlib.dates.date2num(weeks)
matplotlib.pyplot.plot_date(weeksnum,freqs,'b-')
matplotlib.pyplot.tight_layout()
matplotlib.pyplot.show()
|
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following licenses:
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.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic 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.
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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 12:07, 1 September 2014 | 1,528 × 553 (26 KB) | Kronf (talk | contribs) | == {{int:filedesc}} == {{Information |Description ={{de|1=Anzahl der Bearbeitungen der Seite Wiktionary:Teestube in je 7 Tagen im Zeitverlauf. Stand: 01.09.2014}} |Source ={{own}} |Author =[[User:Kronf... |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 1222pt |
---|---|
Height | 442pt |