#!/usr/bin/env python
'''
gnuplotWMUK.py
User:Fae
Licence: CC-BY-3.0
Feb 2014
'''
import Gnuplot
g=Gnuplot.Gnuplot()
g('''
set title "Wikimedia UK membership (2012-2014)"
set terminal svg
set ytic 100
set key right
set output "gnuplotWMUK.svg"
set xdata time
set timefmt "%Y%m"
seconds_per_month=30*24*60*60
set xtics seconds_per_month*4
set xtics format "%b '%y"
set xrange ["201205":"201403"]
set yrange [0:350]
plot 'gnuplotWMUK.dat' \
u 1:2 title "Total" w lp pt 7 lc rgb"#44aa44", \
'' u 1:3 title "Grace" w lp pt 71 lc 3, \
'' u 1:4 title "New" w lp pt 71 ps 0.5 lc 4, \
'' u 1:5 title "Expired" w lp pt 71 ps 0.5 lc 1, \
100 notitle w l lc 0 lt 0, \
200 notitle w l lc 0 lt 0, \
300 notitle w l lc 0 lt 0
''')
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
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.
https://creativecommons.org/licenses/by/3.0CC BY 3.0 Creative Commons Attribution 3.0 truetrue
Captions
Add a one-line explanation of what this file represents