kiyer commited on
Commit
3ced3be
·
1 Parent(s): c56f651

more bugfixes

Browse files
Files changed (1) hide show
  1. pages/5_research_hotspots.py +2 -2
pages/5_research_hotspots.py CHANGED
@@ -106,7 +106,7 @@ def make_time_excess_plot(midage = 0, tolage = 1, onlyolder = False):
106
  temp = ndimage.gaussian_filter(temp, sigma, mode='nearest')
107
  vscale = (np.nanpercentile(temp,99.5) - np.nanpercentile(temp,0.5))/2
108
 
109
- plt.figure(figsize=(11,9))
110
  plt.pcolor(a[1][0:-1] + (a[1][1]-a[1][0])/2, a[2][0:-1] + (a[2][1]-a[2][0])/2,
111
  temp,cmap='bwr',
112
  vmin=-vscale,vmax=vscale); plt.colorbar()
@@ -117,7 +117,7 @@ def make_time_excess_plot(midage = 0, tolage = 1, onlyolder = False):
117
  st.pyplot(fig)
118
  return
119
 
120
- st.title('Research hotspots compared to full prior')
121
  st.markdown('[Includes papers up to: `'+dateval+'`]')
122
 
123
  midage = st.slider('Age', 0., 10., 0.)
 
106
  temp = ndimage.gaussian_filter(temp, sigma, mode='nearest')
107
  vscale = (np.nanpercentile(temp,99.5) - np.nanpercentile(temp,0.5))/2
108
 
109
+ fig = plt.figure(figsize=(11,9))
110
  plt.pcolor(a[1][0:-1] + (a[1][1]-a[1][0])/2, a[2][0:-1] + (a[2][1]-a[2][0])/2,
111
  temp,cmap='bwr',
112
  vmin=-vscale,vmax=vscale); plt.colorbar()
 
117
  st.pyplot(fig)
118
  return
119
 
120
+ st.title('Research hotspots')
121
  st.markdown('[Includes papers up to: `'+dateval+'`]')
122
 
123
  midage = st.slider('Age', 0., 10., 0.)