Skip to content

Commit e6bc5fe

Browse files
committed
minor
1 parent 7ac166b commit e6bc5fe

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pyspod/postprocessing.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,13 +406,13 @@ def plot_2D_modes_at_frequency(modes, freq_required, freq, vars_idx=[0], modes_i
406406
real_ax = fig.add_subplot(1, 2, 1)
407407
real = real_ax.contourf(
408408
x1, x2, np.real(mode).T,
409-
vmin=-np.abs(mode).max()*1.2,
410-
vmax= np.abs(mode).max()*1.2)
409+
vmin=-np.abs(mode).max()*1.,
410+
vmax= np.abs(mode).max()*1.)
411411
imag_ax = fig.add_subplot(1, 2, 2)
412412
imag = imag_ax.contourf(
413413
x1, x2, np.imag(mode).T,
414-
vmin=-np.abs(mode).max()*1.2,
415-
vmax= np.abs(mode).max()*1.2)
414+
vmin=-np.abs(mode).max()*1.,
415+
vmax= np.abs(mode).max()*1.)
416416
if plot_max:
417417
idx_x1,idx_x2 = np.where(np.abs(mode) == np.amax(np.abs(mode)))
418418
real_ax.axhline(x1[idx_x1], xmin=0, xmax=1,color='k',linestyle='--')
@@ -469,8 +469,8 @@ def plot_2D_modes_at_frequency(modes, freq_required, freq, vars_idx=[0], modes_i
469469
real_ax = plt.gca()
470470
real = real_ax.contourf(
471471
x1, x2, np.real(mode).T,
472-
vmin=-np.abs(mode).max()*1.2,
473-
vmax= np.abs(mode).max()*1.2)
472+
vmin=-np.abs(mode).max()*1.,
473+
vmax= np.abs(mode).max()*1.)
474474
if plot_max:
475475
idx_x1,idx_x2 = np.where(np.abs(mode) == np.amax(np.abs(mode)))
476476
real_ax.axhline(x1[idx_x1], xmin=0, xmax=1,color='k',linestyle='--')

tutorials/climate/ERA20C_MEI_2D/ERA20C_MEI_2D.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
spod = SPOD_analysis.fit()
7979

8080
# Show results
81-
T_approx = 876 # approximate period (in days)
81+
T_approx = 900 # approximate period (in days)
8282
freq_found, freq_idx = spod.find_nearest_freq(freq_required=1/T_approx, freq=spod.freq)
8383
modes_at_freq = spod.get_modes_at_freq(freq_idx=freq_idx)
8484

0 commit comments

Comments
 (0)