Page MenuHomec4science

nforh.tex
No OneTemporary

File Metadata

Created
Sat, Jan 18, 18:03

nforh.tex

\begin{tikzpicture}
\pgfplotsset
{
%scale only axis,
%scaled x ticks = base 10:2,
%height = 8cm,
%width = 12cm,
xmin = 900, xmax = 980,
ymin= -0.01, ymax= 0.06,
}
\begin{axis}
[
title = {Compte des néutrons},
xlabel={$h$ [$mm$]},
ylabel={$\frac{1}{N}$ [$s$]},
ymajorgrids = true,
grid style = dashed,
legend style =
{
at = {(0.95, 0.75)},
anchor = east
},
cycle list name = color
]
\pgfplotstableread{mesure.dat}\mesurefile
\addplot+
[
color = blue,
mark = diamond,
only marks,
error bars/.cd,
x dir=both,
y dir=both,
x explicit,
y explicit
]
table [x = h, y = N, x error = errh, y error = errN] {\mesurefile};
\label{courbeN}
\addlegendentry{$\frac{1}{N}$}
% critical height values
\addplot
[
color = teal,
mark = triangle*,
only marks
]
coordinates
{
(964.6, 0)
};
\addlegendentry{step 1}
\addplot
[
color = orange,
mark = square*,
only marks
]
coordinates
{
(961.9, 0)
};
\addlegendentry{step 2}
\addplot
[
color = red,
mark = *,
only marks
]
coordinates
{
(959.1, 0)
};
\addlegendentry{step 3}
% first error step
\addplot
[
color = teal,
mark = none,
densely dotted,
domain = 910:1000,
]
{-0.00105 * (x - 920) + 0.042};
\addplot
[
color = teal,
mark = none,
densely dotted,
domain = 910:1000,
]
{-0.00087 * (x - 920) + 0.0428};
% second error step
\addplot
[
color = orange,
mark = none,
dashed,
domain = 920:1000,
]
{-0.001057 * (x - 934) + 0.028};
\addplot
[
color = orange,
mark = none,
dashed,
domain = 920:1000,
]
{-0.000971 * (x - 934) + 0.0284};
% third error step
\addplot
[
color = red,
mark = none,
dotted,
domain = 934:1000,
]
{-0.001175 * (x - 942) + 0.019};
\addplot
[
color = red,
mark = none,
dotted,
domain = 934:1000,
]
{-0.001075 * (x - 942) + 0.0194};
\end{axis}
\end{tikzpicture}

Event Timeline