Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
more bugfixes
Browse files
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
|
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.)
|