I've got data in the following format
n lw lq m uq uw
50 200 209 237 327 569
100 376 379 386 390 391
150 ...
...
Where lw = lower whisker
, lq = lower quartile
, etc.
I want to plot each box against n
on the x axis and end up with a figure that looks something like this:
(source: togaware.com)
I've been trying to modify an existing graph that was plotting the non-boxed data, but I can't find a way to configure it that doesn't result in LaTeX failing to compile.
\pgfplotstableread{code/tree/results.dat}\loadedtable
\begin{figure}
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
xlabel near ticks,
ylabel near ticks,
xlabel={Size of Tree $n$},
ylabel={Time $\mu$s},
width=11cm,
height=10cm
]
\addplot [box plot] table[x=n,y=???] from \loadedtable;
\end{tikzpicture}
\caption{Test Results}
\label{fig:tree-results-1}
\end{figure}
How can I specify the box plot limits using a data file rather than a prepared set of fixed values?
\documentclass
command, have a minimal preamble and then\begin{document}...\end{document}
. Unless the problem is a compilation error, the code should compile and be as small as possible to demonstrate your problem. This makes it much easier for people to help you --- and much more likely that they will!