# Plot CSV file from http://gs.statcounter.com/importcsvfrompylabimport*figure(figsize=(8,8))d={}# read CSV data:withopen('browser-ww-monthly-200901-201705.csv',newline='')ascsvfile:forrincsv.reader(csvfile):ifr[0]=='Date':h=rforxinrange(len(r)):d[][x]=[]else:forxinrange(len(r)):d[][x].append(r[x])t=[]# calculate dates:forxind['Date']:y,m=x.split('-')t.append(float(y)+(float(m)-1)/12)# sort keys by latest values:v=[]forkind.keys():ifk!='Date':v.append((k,float(d[k][-1])))v=sorted(v,key=lambdaa:a[1])[::-1]print(v)# plot data:forkinv:ifk[1]>=2:plot(t,d[][0],label=k[0],lw=2)xlabel('Year')ylabel('%')title('Usage share of major (>2% in May 2017) web browsers')grid(True,ls='solid')legend(loc=(.4,.65))gca().xaxis.get_major_formatter().set_useOffset(False)tick_params(labelright=True)xlim(t[0],t[-1])ylim(0,70)text(2015.3,-5,"Source: StatCounter")savefig("browser_share.svg")show()
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.
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
You may select the license of your choice.
Captions
Add a one-line explanation of what this file represents
== {{int:filedesc}} == {{Information |Description ={{en|1=Development of web browser usage share according to StatCounter data. Only browsers with a share of 2% or higher in May 2017 are plotted.}} |Source ={{own}} |Author =[[User:Mo...
File usage
No pages on the English Wikipedia use this file (pages on other projects are not listed).