File:Web browser usage share, 01-2016.svg

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

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

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Development of web browser usage share according to StatCounter data. Only browsers with a share of 2% or higher in 2016-01 are plotted.
Date
Source Own work
Author Morn
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

Source code
# Plot CSV from http://gs.statcounter.com/#all-browser-ww-monthly-200812-201601

import csv
from pylab import *

figure(figsize = (8,8))

d = {}

# read CSV data:
with open('browser-ww-monthly-200812-201601.csv', newline='') as csvfile:
	for r in csv.reader(csvfile):
		if r[0] == 'Date':
			h = r
			for x in range(len(r)):
				d[r[x]] = []
		else:
			for x in range(len(r)):
				d[h[x]].append(r[x])

t = []

# calculate dates:
for x in d['Date']:
	y, m = x.split('-')
	t.append(float(y) + (float(m)-1)/12)

# sort keys by latest values:
v = []
for k in d.keys():
	if k != 'Date':
		v.append((k, float(d[k][-1])))
v = sorted(v, key = lambda a: a[1])[::-1]
print (v)

# plot data:
for k in v:
	if k[1] >= 2:
		plot(t, d[k[0]], label = k[0], lw = 2)
xlabel('Year')
ylabel('%')
title('Usage share of major (>2% in January 2016) web browsers')
grid(True, ls = 'solid')
legend(loc = (.55,.65))
gca().xaxis.get_major_formatter().set_useOffset(False)
tick_params(labelright=True)
xlim(t[0], t[-1])
text(2014.3, -5, "Source: StatCounter")

savefig("Web browser usage share, 01-2016.svg")
show()

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
current16:15, 22 January 2016Thumbnail for version as of 16:15, 22 January 2016720 × 720 (71 KB)Morn (talk | contribs){{Information |Description ={{en|1=Development of web browser usage share according to StatCounter data. Only browsers with a share of 2% or higher in 2016-01 are plotted.}} |Source ={{own}} |Author =Morn |Date...

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata