Page MenuHomec4science

compare.tex
No OneTemporary

File Metadata

Created
Thu, Aug 8, 13:34

compare.tex

\begin{tikzpicture}
\pgfplotsset
{
%scale only axis,
%scaled x ticks = base 10:2,
height = 8cm,
width = 13cm,
xlabel={$t$ [\si{\second}]},
xmin = 0, xmax = 5000,
%title = {Aluminium},
legend style =
{
at = {(1.1, 1)},
anchor = north west,
%nodes={scale=0.8, transform shape}
}
%cycle list name = color,
}
\begin{axis}
[
ylabel={$<x>$},
ymin = -100, ymax = 100,
axis y line*= left,
grid style = dashed,
ymajorgrids = true,
every y tick label/.append style = {blue}
]
\addplot
[
color = cyan,
smooth,
mark = none,
]
gnuplot [raw gnuplot] {
plot "outs/harmonic.dat" using 1:5 every 3;
};
\label{xquant}
\addlegendentry{$<x>(t)$ quantique}
\addplot
[
color = violet,
smooth,
domain = 0:5000,
mark = none
]
{73.3038285837618 * sin(deg(0.003 * x))};
\label{xclass}
\addlegendentry{$x(t)$ classique}
\end{axis}
\begin{axis}
[
ylabel={$<p>$},
ymin = -0.25, ymax = 0.3,
axis y line*= right,
axis x line = none,
%grid style = dashed,
%ymajorgrids = true
every y tick label/.append style = {red}
]
\addlegendimage{/pgfplots/refstyle=xquant}\addlegendentry{$<x>$ quantique}
\addlegendimage{/pgfplots/refstyle=xclass}\addlegendentry{$<x>$ classique}
\addplot
[
color = orange,
smooth,
mark = none,
]
gnuplot [raw gnuplot] {
plot "outs/harmonic.dat" using 1:8 every 3;
};
\addlegendentry{$<p>(t)$ quantique}
\addplot
[
color = red,
smooth,
domain = 0:5000,
mark = none
]
{0.219911485751286 * cos(deg(0.003 * x))};
\addlegendentry{$p(t)$ classique}
\end{axis}
\end{tikzpicture}

Event Timeline