Skip to content

Commit 6eca3f9

Browse files
author
Daniel Ruprecht
committed
update plotting parameters for runtime and speedup figure
1 parent 0ad08d3 commit 6eca3f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plot_parareal_scaling.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,23 @@
120120
nodes = list(Nprocs)
121121
ymax = max(map(max,timers_avg))+1.0
122122

123-
NN = Nprocs[ numpy.size(Nprocs) - 2] - 0.75
123+
NN = Nprocs[ numpy.size(Nprocs) - 2] - 0.85
124124

125-
plt.gca().annotate('Serial runtime', xy=( NN, 1.075*time_serial_f), xytext=( NN, 1.075*time_serial_f ), fontsize=fs-1)
126-
plt.gca().set_yscale('log')
125+
plt.gca().annotate('Serial runtime', xy=( NN, 1.075*time_serial_f), xytext=( NN, 1.075*time_serial_f ), fontsize=fs-1, fontweight='bold')
126+
#plt.gca().set_yscale('log')
127127
#plt.gca().set_xscale('log')
128128
plt.xlabel(r'Number of cores $P$', fontsize=fs)
129-
plt.ylabel('Runtime [sec.] (log-scaled)', fontsize=fs, labelpad=2)
129+
plt.ylabel('Runtime [sec.]', fontsize=fs, labelpad=2)
130130

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

133-
plt.gca().set_ylim([2.0, 50.0])
133+
plt.gca().set_ylim([0.0, 20.0])
134134
if machine=="dora":
135135
plt.gca().set_xticks([2,6,10,14,18,22])
136136
if machine=="cub" or machine=="centos":
137137
plt.gca().set_xticks(Nprocs)
138-
plt.gca().set_yticks([5, 10, 20, 50])
139-
plt.gca().set_yticklabels(["5", "10", "20", "50"])
138+
plt.gca().set_yticks([5, 10, 20])
139+
plt.gca().set_yticklabels(["5", "10", "20"])
140140
plt.gca().get_yaxis().get_major_formatter().labelOnlyBase = False
141141
plt.grid(True)
142142
if machine=="dora":

0 commit comments

Comments
 (0)