Voberietung.tex 3.25 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84

\begin{landscape} 
\begin{figure*}
\caption{Vorbereitungszeit des Experten} 
\label{plot:Vorberitung}
\begin{tikzpicture}
\pgfplotstableread{Charts/Vorbereitung.txt}
\datatable
\begin{axis}[
width  = 25cm,
height = 0.9\textwidth,
boxplot/draw direction=y,
axis x line*=bottom,
axis y line=left,
enlarge y limits,
ymajorgrids,
ymin=0,
ymax=50,
y tick label style={/pgf/number format/fixed},
%xtick=data,% crucial line for the xticklabels directive
xtick={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35},
xticklabels={VR,Video,{},VR,Video,{},VR,Video,{},VR,Video,{},VR,Video,{},VR,Video,{},VR,Video,{},VR,Video,{},VR,Video,{},VR,Video,{},VR,Video,{},VR,Video,{}},
extra x ticks={3,6,9,12,15,18,21,24,27,30,33},
% this ticks shouldn't be labeled ...
extra x tick labels={},
extra x tick style={ grid=major, major tick length=0pt     },
x tick label style={font=\footnotesize, text width=2.5cm, align=center, rotate=90},
%boxplot/draw direction=y
boxplot={draw direction=y, draw position={1+\plotnumofactualtype + floor((\plotnumofactualtype+0.5) /2)}},
cycle list={{red},{blue}},
% set `clip mode' to `individual' so the category labels aren't clipped away
clip mode=individual,
ylabel={Zeit in s},
]	
\addplot [ color=\colorVR, only marks,mark=x,each nth point**={2}{0} ]
plot [error bars/.cd, y dir=both, y explicit]
table[x=X,y=Mittelwert,y error=Standartabweichung]{\datatable};

\addplot [ color=\colorVideo, only marks,mark=x,each nth point**={2}{1}]
plot [error bars/.cd, y dir=both, y explicit]
table[x=X,y=Mittelwert,y error=Standartabweichung]{\datatable};




   % add the category labels
            \begin{scope}[
                % because the reference point will be the lower axis line the
                % labels have to be moved a bit more down to don't overlap with
                % the `xticklabels'
                every label/.append style={
                    label distance=12ex,
                },
            ]
                \node [label=below:1]
                    at (axis cs:1.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
                \node [label=below:3]
                    at (axis cs:4.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
                \node [label=below:4]
                    at (axis cs:7.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
                \node [label=below:6]
                    at (axis cs:10.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
                \node [label=below:7]
                    at (axis cs:13.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
 	    \node [label=below:8]
                    at (axis cs:16.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
	    \node [label=below:9]
                    at (axis cs:19.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
	 \node [label=below:10]
                    at (axis cs:22.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
	 \node [label=below:11]
                    at (axis cs:25.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
	 \node [label=below:12]
                    at (axis cs:28.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
	 \node [label=below:13]
                    at (axis cs:31.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
 	\node [label=below:Gesamt]
                    at (axis cs:34.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
            \end{scope}


\end{axis}
\end{tikzpicture}	

wester committed
85 86
\end{figure*}
\end{landscape}