Page MenuHomec4science

battements.tex
No OneTemporary

File Metadata

Created
Sun, Jun 2, 01:44

battements.tex

\begin{tikzpicture}
\pgfplotsset
{
%scale only axis,
%scaled x ticks = base 10:2,
height = 8cm,
width = 14cm,
xlabel={temps [\si{\second}]},
xmin = 8, xmax = 100,
legend style =
{
at = {(1.05, 0.95)},
anchor = north west
},
%cycle list name = color,
grid style = dashed,
ymajorgrids = true,
%minor x tick num = 4,
%minor y tick num = 4,
clip mode = individual
}
\begin{axis}
[
ylabel={Amplitude [\si{\volt}]},
ymin = -1.5, ymax = 1.5
]
\addplot
[
color = blue,
mark = x,
mark options = {
draw = blue,
fill = none,
scale = 0.5
},
smooth,
on layer = background
]
gnuplot [raw gnuplot] {
plot "outs/battementsf30.dat" using 1:2;
};
\addlegendentry{Donnés}
\addplot
[
color = red,
mark = *,
mark options = {
draw = red,
fill = red,
%scale = 1
},
only marks,
on layer = main
]
gnuplot [raw gnuplot] {
plot "outs/battementsf30.dat" using 3:4;
};
\addlegendentry{Pics détectés (hautes)}
\addplot
[
color = violet,
mark = *,
mark options = {
draw = violet,
fill = violet,
%size = 1pt
},
only marks,
on layer = main
]
gnuplot [raw gnuplot] {
plot "outs/battementsf30.dat" using 5:6;
};
\addlegendentry{Pics détectés (bas)}
% TODO fit, sine
\draw[black, dashed, on layer = foreground] (60.75, -1.5) -- (60.75, 1.5);
\draw[black, dashed, on layer = foreground] (39.6, -1.5) -- (39.6, 1.5);
\addlegendimage{black, dashed}
\addlegendentry{Distance: $2\pi / \omega_b$}
\draw[orange, dashed, on layer = foreground] (70.75, -1.5) -- (70.75, 1.5);
\draw[orange, dashed, on layer = foreground] (72.39, -1.5) -- (72.39, 1.5);
\addlegendimage{orange, dashed}
\addlegendentry{Distance: $2\pi / \Omega$}
\end{axis}
\end{tikzpicture}

Event Timeline