-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
171 lines (154 loc) · 3.49 KB
/
main.tex
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
%% main.tex
%% Copyright 2022 Robert Grzonka
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Robert Grzonka.
%
% This work consists of all files listed in manifest.txt.
\documentclass[crop]{standalone}
% main font
\usepackage{fontspec}
\setmainfont{Latin Modern Roman}
% math font
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont{Latin Modern Math}
\unimathsetup{
math-style=ISO,
bold-style=ISO,
sans-style=italic,
nabla=upright,
partial=upright,
}
% units
\usepackage{siunitx}
\sisetup{
unit-font-command=\symup,
locale=DE,
round-mode=figures,
round-precision=3,
}
% chemistry
%redefine chemgreek_text to use upright math alphabet instead
\usepackage{chemmacros}
\chemsetup{
greek=fontspec,
}
\ExplSyntaxOn
\cs_set_protected:Nn \chemgreek_text:n
{\ensuremath{\symup{#1}}}
\ExplSyntaxOff
% pictures
\usepackage{tikz}
% plots & global settings
\usepackage{pgfplots}
\usepgfplotslibrary{groupplots}
\pgfplotsset{
compat=1.18,
xlabel=$t$ / \unit{\nano\second},
legend style={
legend pos=north east,
legend cell align=left,
legend columns=1,
name=legend,
},
enlarge x limits=false,
enlarge y limits=0.05,
tick pos=lower,
tick align=outside,
extra tick style={
grid=major,
major grid style={
dashed,
thick,
},
},
clip marker paths=true,
clip limits=true,
}
% define some line styles
\pgfplotsset{
data/.style={
only marks,
mark=*,
mark size=0.4,
},
fit/.style={
very thick,
no marks,
line join=round,
},
residuals/.style={
black,
data,
},
}
% number format
% german locale
\pgfkeys{
/pgf/number format/.cd,
read comma as period,
set decimal separator={{{,}}},
set thousands separator={\,},
}
\begin{document}
\begin{tikzpicture}
\begin{groupplot}[
group style={
columns=1,
rows=1,
xlabels at=edge bottom,
},
width=14cm,
scale only axis,
xmin=20,
xmax=80,
]
\nextgroupplot[
height=8cm,
ylabel=$I$ / counts,
ymode=log,
ymin=1,
try min ticks=5,
cycle list name=color list,
extra description/.code={
\node[left=0.03,anchor=north east] at (legend.north west) {
\shortstack[l]{
\textbf{Rhodamin B}
}
};
},
]
%\addplot+ [data] table [x=t, y=chcl3_irf, col sep=tab]{data/tcspc_daten-1_fit.txt};
%\addlegendentry{IRF}
\pgfplotsinvokeforeach{chcl3,etoh,h2o,iproh}{
\addplot [data, forget plot] table [x=t, y=#1_dec, col sep=tab]{data/tcspc_daten-1_fit.txt};
}
\pgfplotsinvokeforeach{chcl3,etoh,h2o,iproh}{
\addplot+ [fit] table [x=t, y=#1_fit, col sep=tab]{data/tcspc_daten-1_fit.txt};
}
\legend{
\ch{CHCl3},
\ch{EtOH},
\ch{H2O},
\ch{^{\textit{i}}PrOH},
}
%\nextgroupplot[
% height=1.5cm,
% ylabel=Residuals / $\sigma$,
% try min ticks=3,
% extra y ticks={0},
%]
%\addplot [residuals] table [x=t, y=chcl3_res, col sep=tab]{data/tcspc_daten-1_fit.txt};
\end{groupplot}
\end{tikzpicture}
\end{document}