Page MenuHomec4science

iforh.tex
No OneTemporary

File Metadata

Created
Thu, Jan 9, 01:28

iforh.tex

\begin{tikzpicture}
\pgfplotsset
{
%scale only axis,
%scaled x ticks = base 10:2,
%height = 8cm,
%width = 12cm,
xmin = 900, xmax = 990,
ymin= -1, ymax= 5.5,
}
\begin{axis}
[
title = {Courant},
xlabel={$h$ [$mm$]},
ylabel={$\frac{1}{I}$ [$\frac{1}{nA}$]},
ymajorgrids = true,
grid style = dashed,
legend style =
{
at = {(0.95, 0.75)},
anchor = east
},
cycle list name = color
]
\pgfplotstableread{mesure.dat}\mesurefile
\addplot+
[
color = red,
mark = x,
%mark options = {orange},
only marks,
error bars/.cd,
%error bars/error bar style = {red},
x dir=both,
y dir=both,
x explicit,
y explicit
]
table [x = h, y = I, x error = errh, y error = errI] {\mesurefile};
\label{courbeI}
\addlegendentry{$\frac{1}{I}$}
% critical height values
\addplot
[
color = teal,
mark = triangle*,
only marks
]
coordinates
{
(958.6, 0)
};
\addlegendentry{step 1}
\addplot
[
color = orange,
mark = square*,
only marks
]
coordinates
{
(960.7, 0)
};
\addlegendentry{step 2}
\addplot
[
color = black,
mark = *,
only marks
]
coordinates
{
(956.6, 0)
};
\addlegendentry{step 3}
% first error step
\addplot
[
color = teal,
mark = none,
densely dotted,
domain = 910:1000,
]
{-0.155 * (x - 920) + 3.7};
\addplot
[
color = teal,
mark = none,
densely dotted,
domain = 910:1000,
]
{-0.075 * (x - 920) + 4};
% second error step
\addplot
[
color = orange,
mark = none,
dashed,
domain = 920:1000,
]
{-0.11143 * (x - 934) + 2.44};
\addplot
[
color = orange,
mark = none,
dashed,
domain = 920:1000,
]
{-0.08143 * (x - 934) + 2.56};
% third error step
\addplot
[
color = black,
mark = none,
dotted,
domain = 934:1000,
]
{-0.1225 * (x - 942) + 1.58};
\addplot
[
color = black,
mark = none,
dotted,
domain = 934:1000,
]
{-0.1 * (x - 942) + 1.64};
\end{axis}
\end{tikzpicture}

Event Timeline