Commit d5305c0b by Kai Westerkamp

Charts

parent 63af72bd
Pipeline #398 passed with stage
in 1 minute 26 seconds
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
\pgfplotstableread{Charts/NASATLX.txt} \pgfplotstableread{Charts/NASATLX.txt}
\datatable \datatable
\begin{axis}[ \begin{axis}[
width = \textwidth, width = 0.8\textwidth,
height = 0.7\textheight, height = 0.7\textheight,
boxplot/draw direction=y, boxplot/draw direction=y,
axis x line*=bottom, axis x line*=bottom,
...@@ -16,18 +16,18 @@ ymin=0, ...@@ -16,18 +16,18 @@ ymin=0,
ymax=100, ymax=100,
%xtick=data,% crucial line for the xticklabels directive %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}, 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},
xticklabels={VR Experte,AR Lokal,Video Experte,Video Lokal,{},VR Experte,AR Lokal,Video Experte,Video Lokal,{},VR Experte,AR Lokal,Video Experte,Video Lokal,{},VR Experte,AR Lokal,Video Experte,Video Lokal,{},VR Experte,AR Lokal,Video Experte,Video Lokal,{},VR Experte,AR Lokal,Video Experte,Video Lokal,{},VR Experte,AR Lokal,Video Experte,Video Lokal}, xticklabels ={,,},
extra x ticks={5,10,15,20,25,30}, extra x ticks={5,10,15,20,25,30},
% this ticks shouldn't be labeled ... % this ticks shouldn't be labeled ...
extra x tick labels={}, extra x tick labels={},
extra x tick style={ grid=major, major tick length=0pt }, extra x tick style={ grid=major, major tick length=0pt },
x tick label style={font=\footnotesize, text width=1cm, align=center, rotate=-90},
%boxplot/draw direction=y %boxplot/draw direction=y
boxplot={draw direction=y, draw position={1+\plotnumofactualtype + floor((\plotnumofactualtype+0.5) /4)}}, boxplot={draw direction=y, draw position={1+\plotnumofactualtype + floor((\plotnumofactualtype+0.5) /4)}},
cycle list={{red},{blue}}, cycle list={{red},{blue}},
% set `clip mode' to `individual' so the category labels aren't clipped away % set `clip mode' to `individual' so the category labels aren't clipped away
clip mode=individual, clip mode=individual,
legend entries={VR Experte,AR Lokal,Video Experte,Video Lokal}, legend entries={VR Experte,AR Lokal,Video Experte,Video Lokal},
%legend style={at={(0.03,0.97)},anchor=north west,draw=none},
legend to name={legend}, legend to name={legend},
name=border name=border
] ]
...@@ -73,21 +73,21 @@ name=border ...@@ -73,21 +73,21 @@ name=border
% labels have to be moved a bit more down to don't overlap with % labels have to be moved a bit more down to don't overlap with
% the `xticklabels' % the `xticklabels'
every label/.append style={ every label/.append style={
label distance=5ex, label distance=1ex,
}, },
] ]
\node [label=below:Geistige Anforderung] \node [label=below:Geistige Anforderung]
at (axis cs:2.5,\pgfkeysvalueof{/pgfplots/ymin}) {}; at (axis cs:2.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
\node [label=below:Körperliche Anforderung] \node [label=below:K{\"o}rperliche Anforderung]
at (axis cs:7.5,\pgfkeysvalueof{/pgfplots/ymin}-1ex) {}; at (axis cs:7.5,\pgfkeysvalueof{/pgfplots/ymin}-2ex) {};
\node [label=below:Zeitliche Anforderung] \node [label=below:Zeitliche Anforderung]
at (axis cs:12.5,\pgfkeysvalueof{/pgfplots/ymin}) {}; at (axis cs:12.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
\node [label=below:Leistung] \node [label=below:Leistung]
at (axis cs:17.5,\pgfkeysvalueof{/pgfplots/ymin}) {}; at (axis cs:17.5,\pgfkeysvalueof{/pgfplots/ymin}-2ex) {};
\node [label=below:Anstrengung] \node [label=below:Anstrengung]
at (axis cs:22.5,\pgfkeysvalueof{/pgfplots/ymin}) {}; at (axis cs:22.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
\node [label=below:Frustration] \node [label=below:Frustration]
at (axis cs:27.5,\pgfkeysvalueof{/pgfplots/ymin}) {}; at (axis cs:27.5,\pgfkeysvalueof{/pgfplots/ymin}-2ex) {};
\node [label=below:Gesamt] \node [label=below:Gesamt]
at (axis cs:32.5,\pgfkeysvalueof{/pgfplots/ymin}) {}; at (axis cs:32.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
\end{scope} \end{scope}
......
...@@ -17,6 +17,9 @@ ymajorgrids, ...@@ -17,6 +17,9 @@ ymajorgrids,
ymin=-3, ymin=-3,
ymax=3, ymax=3,
ytick distance=1, ytick distance=1,
extra y ticks={-3,3},
extra y tick labels={nicht von Vorteil,sehr vorteilhaft},
extra y tick style={ticklabel style={xshift=-4ex}},
xtick={1}, xtick={1},
xticklabels={{}}, xticklabels={{}},
boxplot/draw direction=y boxplot/draw direction=y
......
\begin{figure}
\label{plot:KommunikationsZeit}
\begin{tikzpicture}
\pgfplotstableread{Charts/Zeit.txt}
\datatable
\begin{axis}[
width = \textwidth,
height = 0.7\textheight,
boxplot/draw direction=y,
axis x line*=bottom,
axis y line=left,
enlarge y limits,
ymajorgrids,
ymin=0,
ymax=20,
y tick label style={/pgf/number format/fixed},
%xtick=data,% crucial line for the xticklabels directive
xtick={1,2,3,4,5},
xticklabels={VR,Video,{},VR,Video},
extra x ticks={3},
% 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=1cm, 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=5ex,
},
]
\node [label=below:Vorbereitung]
at (axis cs:1.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
\node [label=below:Kommunikation]
at (axis cs:4.5,\pgfkeysvalueof{/pgfplots/ymin}) {};
\end{scope}
\end{axis}
\end{tikzpicture}
\end{figure}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment