Following up on a previous question. How do I let a bar chart start from a value different to zero? Including negative numbers.
As you can see when I plot the data from the table all bars start at zero.
\usepackage{pgfplots}
\pgfplotstableread[col sep=comma]{
system, Tmin, Tmax, limitmin, limitmax
{a}, 20, 50, -10, 30
{b}, 10, 60, 15, 60
{c}, -15, -5, 0, 10
}{\datatable}
\begin{tikzpicture}
\begin{axis}[
sactter,
xlabel=Temperature,
xbar,
ytick distance=1,
enlarge x limits=0.15,
bar width=0.8em,
symbolic y coords={a, b, c, d, e},
grid=both, ]
\addplot +[forget plot] table [x index=1, y index=0] {\datatable};
\addplot table [x index=2, y index=0] {\datatable};
\addlegendentry{T}
\addplot +[forget plot] table [x index=3, y index=0] {\datatable};
\addplot table [x index=4, y index=0] {\datatable};
\addlegendentry{Limit}
\end{axis}
\end{tikzpicture}
Thanks for your help.
