Skip to content

Commit f476263

Browse files
author
Daniel Ruprecht
committed
updated figure labels
1 parent a903cf1 commit f476263

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

plot_parareal_memory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def extract_memory(line):
7070
ax.set_xticks(ind+1.5*width)
7171
ax.set_xticklabels( ('2', '4', '6', '8', '10', '12', '14', '16', '18', '20', '22', '24'))
7272
ax.tick_params(axis='both', which='major', labelsize=fs)
73-
ax.set_xlabel('Number of cores', fontsize=fs)
74-
ax.set_ylabel('Memory in MByte', fontsize=fs, labelpad=5)
73+
ax.set_xlabel(r'Number of cores $P$', fontsize=fs)
74+
ax.set_ylabel(r'Memory in MByte $m(P)$', fontsize=fs, labelpad=5)
7575
plt.show()
7676
fig.savefig('Memory.pdf', bbox_inches='tight')

plot_parareal_scaling.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Nsamples = 4
88

9-
machine = "cub"
9+
machine = "dora"
1010

1111
if machine=="dora":
1212
Nprocs = numpy.array([2, 4, 6, 8, 10, 12, 24])
@@ -88,8 +88,8 @@
8888
ymin = 0
8989
ymax = max(map(max,speedup))+1.0
9090

91-
plt.xlabel('Number of cores', fontsize=fs)
92-
plt.ylabel('Speedup', fontsize=fs, labelpad=2)
91+
plt.xlabel(r'Number of cores $P$', fontsize=fs)
92+
plt.ylabel(r'Speedup $s(P)$', fontsize=fs, labelpad=2)
9393
if machine=="dora":
9494
plt.xticks([2,6,10,14,18,22], fontsize=fs)
9595
if machine=="cub":
@@ -118,7 +118,7 @@
118118
plt.gca().annotate('Serial runtime', xy=( NN, 1.075*time_serial_f), xytext=( NN, 1.075*time_serial_f ), fontsize=fs-1)
119119
plt.gca().set_yscale('log')
120120
#plt.gca().set_xscale('log')
121-
plt.xlabel('Number of cores', fontsize=fs)
121+
plt.xlabel(r'Number of cores $P$', fontsize=fs)
122122
plt.ylabel('Runtime [sec.] (log-scaled)', fontsize=fs, labelpad=2)
123123

124124
plt.tick_params(axis='both', which='major', labelsize=fs)

0 commit comments

Comments
 (0)