Skip to content

Commit 4493ddb

Browse files
author
Daniel Ruprecht
committed
increased figure size in plot_dispersion; updated first two entries in list of Figures in README
1 parent ce10ee4 commit 4493ddb

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ If you use it (or parts of it) for a publication, please cite
2121
How can I reproduce Figures from the publication?
2222
-----------------
2323

24-
- Fig. 1 --> scripts/plot_dispersion.py with different parameters
24+
- Fig. 1 and Fig. 2 --> scripts/plot_svd_vs_dt.py
25+
- Fig. 3 --> scripts/plot_dispersion.py with parameter nu=0.0 and nu=0.1
2526
- Fig. 2 --> example/run.py
2627
- Fig. 3 --> scripts/plot_ieuler_dispersion.py
2728
- Fig. 4 --> scripts/plot_dispersion.py with approx_symbol=True
@@ -40,4 +41,4 @@ How can I reproduce Figures from the publication?
4041
Who do I talk to?
4142
-----------------
4243

43-
This code is written by [Daniel Ruprecht](http://www.parallelintime.org/groups/leeds.html).
44+
This code is written by [Daniel Ruprecht](http://www.parallelintime.org/groups/leeds.html).

scripts/plot_dispersion.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def normalise(R, T, target):
5959
U_speed = 1.0
6060

6161
# diffusivity parameter
62-
nu = 0.0
62+
nu = 0.1
6363

6464
# select coarse integrator:
6565
# 0 = normal backward Euler method
@@ -84,7 +84,7 @@ def normalise(R, T, target):
8484

8585
# number of discrete values between kappa=0 and kappa=pi for which the dispersion relation is computed.
8686
# try to increase this value of the normalisation fails.
87-
Nsamples = 50
87+
Nsamples = 30
8888

8989
k_vec = np.linspace(0.0, np.pi, Nsamples+1, endpoint=False)
9090
k_vec = k_vec[1:]
@@ -199,7 +199,7 @@ def normalise(R, T, target):
199199
amp_factor[3+jj,i] = np.exp(sol_para.imag)
200200

201201
###
202-
rcParams['figure.figsize'] = 2.5, 2.5
202+
rcParams['figure.figsize'] = 3.54, 3.54
203203
fs = 8
204204
fig = plt.figure()
205205
plt.plot(k_vec, phase[0,:], '--', color='k', linewidth=1.5, label='Exact')
@@ -237,4 +237,4 @@ def normalise(R, T, target):
237237
#plt.show()
238238
filename = 'parareal-dispersion-ampf.pdf'
239239
plt.gcf().savefig(filename, bbox_inches='tight')
240-
call(["pdfcrop", filename, filename])
240+
call(["pdfcrop", filename, filename])

0 commit comments

Comments
 (0)