Skip to content

Commit e2e4637

Browse files
committed
Use laTex for plots and increase the font size
1 parent ea42b1f commit e2e4637

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

plotme.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
import sys
1111
import numpy
1212
from matplotlib.lines import Line2D
13+
import matplotlib.pyplot as plt
14+
15+
plt.rcParams.update({
16+
"text.usetex": True,
17+
"font.family": "Helvetica",
18+
"font.size": 18
19+
})
20+
1321

1422
if len(sys.argv)==2:
1523
file='-'+sys.argv[1]
@@ -53,7 +61,6 @@
5361
xdata[name] += [nthreads]
5462
ydata[name] += [float(row[6])]
5563

56-
import matplotlib.pyplot as plt
5764
import numpy as np
5865
from scipy.optimize import curve_fit as cf
5966

@@ -174,7 +181,7 @@ def rt(x, k, p, o, o2, o3):
174181
#ax.legend(loc='upper center', bbox_to_anchor=(0.5, -0.15),
175182
# fancybox=True, shadow=True, ncol=4)
176183
plt.grid()
177-
plt.xlabel("#cores")
184+
plt.xlabel("\#cores")
178185
plt.ylabel("Time [s]")
179186
plt.title("nx="+nx+" and nt="+nt)
180187
plt.savefig('plot'+file+'.pdf',bbox_inches='tight')

0 commit comments

Comments
 (0)