Commit 61dad44a by Kai Westerkamp

test

parent de1a8995
...@@ -9,6 +9,56 @@ ...@@ -9,6 +9,56 @@
Pokemaon Go Pokemaon Go
Rot grün schwäche (genauen Namen erfragen) Rot grün schwäche (genauen Namen erfragen)
ha keine Probleme gemacht, Farbbend der Steine war kräftig genug ha keine Probleme gemacht, Farbbend der Steine war kräftig genug
\begin{tikzpicture}
\begin{axis}[
width = \textwidth,
height = 10cm,
boxplot/draw direction=y,
]
%\pgfplotstableread{Charts/Erfahrung.txt}
%\datatable
\pgfplotstableread{
Minimum Maximum Mittelwert Median Q1 Q3
-3 2 0.090909091 1 -1.75 1
-3 2 -2.090909091 -3 -3 -1
-3 3 1.590909091 2 1 3
}\datatable
\addplot+[boxplot prepared from table={
table=\datatable,
row=1,
lower whisker=Minimum,
upper whisker=Maximum,
lower quartile=Q1,
upper quartile=Q3,
median=Median
}, color=blue
]
coordinates {};
\addplot+[boxplot prepared from table={
table=\datatable,
row=2,
lower whisker=Minimum,
upper whisker=Maximum,
lower quartile=Q1,
upper quartile=Q3,
median=Median
}, color=blue
]
coordinates {};
\end{axis}
\end{tikzpicture}
\section{Ergebnisse} \section{Ergebnisse}
\subsection{Stein Finden} \subsection{Stein Finden}
......
::set localPath=C:\Users\kaiwe\Desktop\TeXworks-win-0.6.2-201704300708-git_7ecce17 set localPath=C:\Users\kaiwe\Desktop\TeXworks-win-0.6.2-201704300708-git_7ecce17
set localPath=..\..\TeXworks-win-0.6.2-201704300708-git_7ecce17 ::set localPath=..\..\TeXworks-win-0.6.2-201704300708-git_7ecce17
set ausarbeitungpath=. set ausarbeitungpath=.
start %localPath%\TeXworks.exe %ausarbeitungpath%\thesis.tex start %localPath%\TeXworks.exe %ausarbeitungpath%\thesis.tex
start %localPath%\TeXworks.exe %ausarbeitungpath%\thesis.bib start %localPath%\TeXworks.exe %ausarbeitungpath%\thesis.bib
......
Minimum Maximum Mittelwert Median Q1 Q3
-3 2 0.090909091 1 -1.75 1
-3 2 -2.090909091 -3 -3 -1
-3 3 1.590909091 2 1 3
\documentclass[crop=false]{standalone}
\usepackage{pgfplotstable}
\pgfplotsset{compat=1.8}
\usepgfplotslibrary{statistics}
\makeatletter
\pgfplotsset{
boxplot prepared from table/.code={
\def\tikz@plot@handler{\pgfplotsplothandlerboxplotprepared}%
\pgfplotsset{
/pgfplots/boxplot prepared from table/.cd,
#1,
}
},
/pgfplots/boxplot prepared from table/.cd,
table/.code={\pgfplotstablecopy{#1}\to\boxplot@datatable},
row/.initial=0,
make style readable from table/.style={
#1/.code={
\pgfplotstablegetelem{\pgfkeysvalueof{/pgfplots/boxplot prepared from table/row}}{##1}\of\boxplot@datatable
\pgfplotsset{boxplot/#1/.expand once={\pgfplotsretval}}
}
},
make style readable from table=lower whisker,
make style readable from table=upper whisker,
make style readable from table=lower quartile,
make style readable from table=upper quartile,
make style readable from table=median,
make style readable from table=lower notch,
make style readable from table=upper notch
}
\makeatother
\pgfplotstableread{
lw uw Mittelwert med lq uq
-3 2 0.090909091 1 -1.75 1
-3 2 -2.090909091 -3 -3 -1
-3 3 1.590909091 2 1 3
}\datatable
%https://tex.stackexchange.com/questions/117435/read-boxplot-prepared-values-from-a-table
%https://www.dante.de/events/Archiv/herbst2010/Programm/pinnow/pinnow-folien.pdf
%https://tex.stackexchange.com/questions/3983/can-i-use-pgfplots-to-make-a-boxplot
%https://tex.stackexchange.com/questions/273299/pgf-boxplot-with-annotations
\begin{document}
\begin{tikzpicture}
\begin{axis}[boxplot/draw direction=y]
\addplot+[
boxplot prepared from table={
table=\datatable,
lower whisker=lw,
upper whisker=uw,
lower quartile=lq,
upper quartile=uq,
median=med
}, boxplot prepared
]
coordinates {};
\addplot+[
boxplot prepared from table={
table=\datatable,
row=1,
lower whisker=lw,
upper whisker=uw,
lower quartile=lq,
upper quartile=uq,
median=med
}, boxplot prepared
]
coordinates {};
\end{axis}
\end{tikzpicture}
\end{document}
\ No newline at end of file
...@@ -18,6 +18,11 @@ ...@@ -18,6 +18,11 @@
\usepackage{listings} \usepackage{listings}
\usepackage{xcolor} \usepackage{xcolor}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usetikzlibrary{pgfplots.statistics}
\renewcommand{\vec}{\overline} \renewcommand{\vec}{\overline}
\renewcommand{\to}{\rightarrow} \renewcommand{\to}{\rightarrow}
\newcommand{\lra}{\leftrightarrow} \newcommand{\lra}{\leftrightarrow}
...@@ -143,6 +148,33 @@ ...@@ -143,6 +148,33 @@
\colorlet{numb}{magenta!60!black} \colorlet{numb}{magenta!60!black}
\pgfplotsset{
boxplot prepared from table/.code={
\def\tikz@plot@handler{\pgfplotsplothandlerboxplotprepared}%
\pgfplotsset{
/pgfplots/boxplot prepared from table/.cd,
#1,
}
},
/pgfplots/boxplot prepared from table/.cd,
table/.code={\pgfplotstablecopy{#1}\to\boxplot@datatable},
row/.initial=0,
make style readable from table/.style={
#1/.code={
\pgfplotstablegetelem{\pgfkeysvalueof{/pgfplots/boxplot prepared from table/row}}{##1}\of\boxplot@datatable
\pgfplotsset{boxplot/#1/.expand once={\pgfplotsretval}}
}
},
make style readable from table=lower whisker,
make style readable from table=upper whisker,
make style readable from table=lower quartile,
make style readable from table=upper quartile,
make style readable from table=median,
make style readable from table=lower notch,
make style readable from table=upper notch
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Here, main documents begins %% %% Here, main documents begins %%
......
No preview for this file type
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