Figure 1. Publications on Tourette syndrome. The number of new publications on Tourette syndrome or other tic disorders each year was estimated from PubMed. The colored line is a LOWESS (locally weighted scatterplot smoothing) curve from the primary data.

PubMed was searched on 16 Feb 2015 using the search string “("Tic Disorders"[MeSH] OR Tourette NOT Tourette[AU]) AND 1800[PDAT] : yyyy[PDAT]” for each year yyyy from 1950 through 2014. Publications per year were computed as the difference of each year’s cumulative publications from the last. (This strategy addresses PubMed’s double-counting of electronic and paper publication dates for about 250 publications since 2005.) The graph was generated by matplotlib in python (see supplementary material).

In [5]:
import numpy as np
import csv
with open('publications_20150213_sheet2.csv', 'rb') as datafile:
    data2 = np.recfromcsv(datafile, names=True)
years = data2['year'][0:65]
cumul = data2['cumulative_from_pubmed_directly'][0:65]
pubs2 = cumul[1:]-cumul[0:-1]
pubs3 = np.insert(pubs2, 0, 0) 

import statsmodels.api as sm
lowess = sm.nonparametric.lowess
b = lowess(pubs3,years,frac=1./3)

import matplotlib.pyplot as plt
%matplotlib inline
plt.scatter(years[1:],pubs3[1:],color='black')
plt.plot(b[1:,0],b[1:,1],'red',linewidth=3)
plt.axis((1950,2015,0,250))
plt.xlabel('Year',fontsize=16)
plt.ylabel('Publications (PubMed)',fontsize=16)
plt.legend(['smoothed','new publications'], loc='upper left')
plt.savefig('TS_publications.png', dpi=600, transparent=True)
plt.show()
In [7]:
print "year\tpubs" ; print "====\t===="
for index in range(0,years.size):
    print "{0:>}\t{1:>4}".format(years[index],pubs3[index])
year	pubs
====	====
1950	   0
1951	   1
1952	   0
1953	   0
1954	   0
1955	   0
1956	   0
1957	   1
1958	   0
1959	   0
1960	   0
1961	   4
1962	   3
1963	   1
1964	   5
1965	  13
1966	  26
1967	  33
1968	  29
1969	  27
1970	  30
1971	  29
1972	  45
1973	  40
1974	  40
1975	  27
1976	  36
1977	  38
1978	  43
1979	  56
1980	  50
1981	  56
1982	 101
1983	  71
1984	  84
1985	  75
1986	  96
1987	  85
1988	 104
1989	  76
1990	  91
1991	  87
1992	 142
1993	 104
1994	 114
1995	 120
1996	 112
1997	 144
1998	 102
1999	 111
2000	 102
2001	 167
2002	 117
2003	 141
2004	 153
2005	 148
2006	 184
2007	 159
2008	 167
2009	 185
2010	 208
2011	 184
2012	 192
2013	 231
2014	 195