Browse Source

Add noise separation plots

master
Markus Kaiser 2 years ago
parent
commit
102c842056
  1. 6
      ecml-talk/data_association.tex
  2. 71
      ecml-talk/figures/noise_separation.tex
  3. 15
      ecml-talk/figures/preamble/tikz_style.tex

6
ecml-talk/data_association.tex

@ -104,7 +104,7 @@
}
\includeonlyframes{graphical_model}
\includeonlyframes{noise_separation}
\begin{document}
@ -113,7 +113,7 @@
\begin{frame}[label=noise_separation]{Noise Separation}
\centering
Motivating example: We have different generating processes, let's separate them
\includestandalonewithpath{figures/noise_separation}
\end{frame}
@ -125,7 +125,7 @@
\begin{frame}[label=graphical_model]{Graphical Model of DAGP}
\centering
\includestandalonewithpath{figures/graphical_model_mdgp}
\includestandalonewithpath{figures/graphical_model_dagp}
\end{frame}

71
ecml-talk/figures/noise_separation.tex

@ -0,0 +1,71 @@
\documentclass[beamer,tikz,crop]{standalone}
\input{preamble/tikz_standalone.tex}
\input{preamble/tikz_common.tex}
\input{preamble/tikz_style.tex}
\input{preamble/tikz_colors.tex}
\input{../abbreviations.tex}
\begin{document}
\begin{tikzpicture}
\def\datapath{\figurepath/data/choicenet_noisy_0.6}
\begin{axis}[
choicenet plot,
clip mode=individual,
width=\textwidth,
height=.8\textheight,
]
\only<1,2,4>{
\addplot[
data,
onslide={<2-> opacity=.75, fill opacity=.25},
] table[
ignore chars={\#}, col sep=space, x=X, y=Y
] {\datapath/Xs_Ys.dat};
}
\only<2>{
\addplot[mean, first, line width=4pt]
table[ignore chars={\#}, col sep=space, x=X, y=mu] {\datapath/Xt_mode_0.dat};
}
\only<3>{
\addplot[
data,
mark=triangle*,
first full,
] table[
ignore chars={\#}, col sep=space, x=X, y=Y
] {\datapath/Xs_Ys_attrib_separated_0.dat};
\addplot[
data,
mark=square*,
second full,
] table[
ignore chars={\#}, col sep=space, x=X, y=Y
] {\datapath/Xs_Ys_attrib_separated_1.dat};
}
\only<4>{
\addplot[std, second, name path=minus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu}-0.5 - \thisrow{2std}] {\datapath/Xt_mode_1.dat};
\addplot[std, second, name path=plus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu}-0.5 + \thisrow{2std}] {\datapath/Xt_mode_1.dat};
\addplot[second fill]
fill between[of=plus and minus];
\addplot[mean, second]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu}-0.5] {\datapath/Xt_mode_1.dat};
\addplot[std, first, name path=plus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} + \thisrow{2std}] {\datapath/Xt_mode_0.dat};
\addplot[std, first, name path=minus]
table[ignore chars={\#}, col sep=space, x=X, y expr=\thisrow{mu} - \thisrow{2std}] {\datapath/Xt_mode_0.dat};
\addplot[first fill]
fill between[of=plus and minus];
\addplot[mean, first]
table[ignore chars={\#}, col sep=space, x=X, y=mu] {\datapath/Xt_mode_0.dat};
}
\end{axis}
\end{tikzpicture}
\end{document}

15
ecml-talk/figures/preamble/tikz_style.tex

@ -14,15 +14,12 @@
\pgfplotsset{data/.style = {
only marks,
very thin,
mark size=1pt,
thin,
mark size=1.5pt,
% draw opacity=.75,
fill opacity=.5,
sStoneDark,
}}
% \pgfplotsset{
% /pgfplots/colormap={firstsecond}{color=(sTealDark) color=(sStone) color=(sGreenLight)}
% }
\pgfplotsset{model plot/.style = {
grid=major,
% enlarge x limits=false,
@ -37,6 +34,12 @@
ytick={0, 2.5, 5},
}}
\pgfplotsset{choicenet plot/.style = {
model plot,
xlabel=$\rv{X}$, ylabel=$\rv{y}$,
ymin=-1.5, ymax=3.5,
}}
\pgfplotsset{slim colorbar right/.style = {
colorbar,
colorbar style={
@ -61,8 +64,10 @@
\tikzstyle{std} = [thin]
\tikzstyle{first} = [sTealDark]
\tikzstyle{first fill} = [sTealDark, opacity=0.3]
\tikzstyle{first full} = [sTealDark, fill=sTealDark]
\tikzstyle{second} = [sGreenLight]
\tikzstyle{second fill} = [sGreenDark, opacity=0.3]
\tikzstyle{second full} = [sGreenDark, fill=sGreenDark]
\tikzstyle{quiver arrow} = [-{Stealth[length=4pt, round]}]
\tikzstyle{waterfall} = [draw=none, fill=sStone]

Loading…
Cancel
Save