Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
\def\fname{rtol=1e-5_diam=1e-2}
\newread\threequakesminread
\openin\threequakesminread=generated/timeframe:min:threequakes:\fname.tex
\read\threequakesminread to \threequakesmin
\closein\threequakesminread
\newread\threequakesmaxread
\openin\threequakesmaxread=generated/timeframe:max:threequakes:\fname.tex
\read\threequakesmaxread to \threequakesmax
\closein\threequakesmaxread
\begin{tikzpicture}[trim axis group left, trim axis group right]
\begin{groupplot}[
xmin=\threequakesmin, xmax=\threequakesmax,
max space between ticks=40pt,
x tick label style={
/pgf/number format/.cd,
1000 sep={},
/tikz/.cd
},
tick label style={font=\footnotesize},
label style={font=\small},
group style={
x descriptions at = edge bottom,
group size=1 by 3,
vertical sep=0cm
},
height=3.5cm, width=12cm,
enlargelimits=false]
\nextgroupplot[
semithick,
ylabel style={align=center}, ylabel = time step\\size, y unit = s,
ytick={1e-3,1e-2,1e-1},
ymax = 1, ymin = 1e-4,
ymode = log]
\addplot[const plot, mark=none] table[col sep=comma, y=timeIncrement]
{generated/3d-performance:\fname.csv};
\nextgroupplot[
semithick,
ylabel style={align=center}, ylabel = fixed-point\\iterations,
ytick={2,4,6,8},
ymin=0, ymax=10]
\addplot[const plot, mark=none] table[col sep=comma, y=fixedPointIterations]
{generated/3d-performance:\fname.csv};
\nextgroupplot[
semithick,
xlabel = time, x unit = s,
ylabel style={align=center}, ylabel=multigrid\\iterations,
ytick={5,10,15,20},
ymin=0, ymax=25
]
\addplot[const plot, mark=none] table[col sep=comma, y=multiGridIterations]
{generated/3d-performance:\fname.csv};
\end{groupplot}
\end{tikzpicture}