kiyer commited on
Commit
9c7a7db
1 Parent(s): e196777

possible st.pyplot argument fix

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
- 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()
 
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, ax = plt.subplots(1,1,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()
pages/9_research_hotspots_2024.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
- 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()
 
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, ax = plt.subplots(1,1,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()