Page MenuHomec4science

xplusone.tex
No OneTemporary

File Metadata

Created
Mon, Dec 23, 04:53

xplusone.tex

\begin{tikzpicture}
\pgfplotsset
{
%scale only axis,
%scaled x ticks = base 10:2,
xmin = 0, xmax = 1,
width = \linewidth
%height = 7cm
}
\begin{axis}
[
xlabel={$x$},
ylabel={$y$},
ymin=-0.1, ymax= 1,
ymajorgrids = true,
grid style = dashed,
legend style = {
matrix anchor = south west,
at = {(0.05, 0.05)}
}
]
\addplot
[
only marks,
error bars/.cd,
y dir = both,
y explicit
]
coordinates {
(0.4, 0.8) +- (0, 0.02)
(0.5, 0.6) +- (0, 0.016)
};
\label{pointExample}
\addlegendentry{$y$}
\addplot+
[mark = none, domain = 0.4:1] {-2.36 * (x - 0.5) + 0.584};
\label{spanMinus}
\addlegendentry{$r_-$}
\addplot+[mark = none, domain = 0.4:1] {-1.64 * (x - 0.5) + 0.616};
\label{spanPlus}
\addlegendentry{$r_+$}
\end{axis}
\end{tikzpicture}

Event Timeline