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.
Note: If you modify the graph itself (e.g., using a graphical editor such as Inkscape) you should use CC-BY-SA as described above. If, however, you regenerate the graph, with or without modification, using gnuplot with the script and data provided below, then you need not attribute the graph. You also need not provide the script or the data to anyone. However, I would appreciate it if you would please provide your script and data via a link from your graph, if you produce a modified graph using gnuplot. In addition, please provide a link back to this page from your script and from your data. Thanks. -Arch dude (talk) 01:09, 11 December 2012 (UTC)
Data and method
Plot generated using gnuplot. To regenerate, paste the script into a file named plotcases, paste the data into a file named 2012_meningitis_cases.dat
and then issue the following command:
gnuplot plotcases
Note: the first two dates , 20 sept and 21 sept, are inferred from CDC's initial reports, namely that the initial case was reported on 21 Sept.
the remaining data is from each successive dated CDC "cases" page. These were initially daily, then transitioning to weekly.
Gnuplot script
# copyright (c) 2012, Dan Clemmensen. All rights reserved. Anyone is licensed
# to use this script under the CC_BY_SA license: see
# https://creativecommons.org/licenses/by-sa/3.0/deed.en
# "Attribution" may be accomplished by linking to
# http://commons.wikimedia.org/wiki/File:2012_meningitis_cases.svg
set terminal svg enhanced size 1000 1000 fname "Times" fsize 36
set output "2012_meningitis_cases.svg"
set title "Cumulative cases and deaths"
set key left box
set xdata time
set timefmt "%y/%m/%d"
set ytics textcolor rgb "red"
set ytics nomirror
set y2tics textcolor rgb "green"
set object 1 rectangle from screen 0,0 to screen 1,1 behind
set object 1 rectangle fc rgb "white" fillstyle solid 1.0
set style line 1 lw 2
set style line 2 lw 2
plot "2012_meningitis_cases.dat" using 1:2 title "cases" with lines ls 1,\
"" using 1:3 title "deaths" axes x1y2 with lines ls 2