-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfig23.tex
87 lines (73 loc) · 3.92 KB
/
fig23.tex
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
85
86
87
\documentclass[sansserif,mathserif]{article}
\usepackage{pgf,tikz}
\usepackage{pgfplots}
\usepackage{amsmath}
\usetikzlibrary{calc,shadows}
\usetikzlibrary{pgfplots.groupplots}
\newcommand{\mat}[1]{\mathbf{#1}}
\pgfplotsset{width=7cm,compat=1.3}
\newcommand{\labelsize}{\small}
\newcommand{\powpar}[2]{{#1}^{(#2)}}
\pagestyle{empty}
\begin{document}
\begin{figure}[h!]
\centering
\begin{tikzpicture}[scale=0.8]
\begin{axis}[name=plot1,
xlabel={\footnotesize $f$},
width=0.9\columnwidth,
height = 0.45\columnwidth,
ymin = 0,
ymax = 5,
legend entries={ {$s_{0.6,0.4\pi}$}, {$s_{0.8,0.4\pi}$},{$s_{0.6,0.7\pi}$},{$s_{0.8,0.7\pi}$},},
xticklabel style={font=\footnotesize,},
yticklabel style={font=\footnotesize,},
legend style={
font=\tiny,}
]
{
\addplot +[mark=none,solid,black] table[x index=0,y index=1]{psds.dat};
\addplot +[mark=none,dashdotted,black] table[x index=0,y index=2]{psds.dat};
\addplot +[mark=none,dashed,black] table[x index=0,y index=3]{psds.dat};
\addplot +[mark=none,dotted,black] table[x index=0,y index=4]{psds.dat};
}
\end{axis}
\end{tikzpicture}
\caption{\label{fig:psdexamples} Example PSDs.}
\end{figure}
\renewcommand{\labelsize}{\scriptsize}
\begin{figure}[h]
\centering
\begin{tikzpicture}[scale = 1]
\begin{groupplot}[group style={group size=3 by 4,horizontal sep=0.08\columnwidth,vertical sep=0.12\columnwidth,xlabels at=edge bottom, ylabels at=edge left},
x label style={at={(axis description cs:0.5,-0.35)},anchor=north},
width=0.34\columnwidth, /tikz/font=\footnotesize, colormap/blackwhite, view={0}{90}, point meta min=0.0, point meta max=0.5, minor tick num=4] %, xlabel=$M$, ylabel=$d(X,Y)$
\nextgroupplot[title = NNPC, xlabel={\labelsize $\sigma$}, ylabel={\labelsize $d(X^{(1)},X^{(2)})$}]
\addplot3[surf, shader=flat] file {cesnnpc-distsigman.dat};
\nextgroupplot[title = KM, xlabel={\labelsize $\sigma$}] %, ylabel={\labelsize $d(X^{(1)},X^{(2)})$}
\addplot3[surf, shader=flat] file {ceskm-distsigman.dat};
\nextgroupplot[title = KMit, colorbar, xlabel={\labelsize $\sigma$}] %, ylabel={\labelsize $d(X^{(1)},X^{(2)})$}
\addplot3[surf, shader=flat] file {ceskmfp-distsigman.dat};
\nextgroupplot[xlabel={\labelsize $M$}, ylabel={\labelsize $d(X^{(1)},X^{(2)})$}] % title = NNPC,
\addplot3[surf, shader=flat] file {cesnnpc-distobslen.dat};
\nextgroupplot[xlabel={\labelsize $M$}] %title = KM,
\addplot3[surf, shader=flat] file {ceskm-distobslen.dat};
\nextgroupplot[colorbar, xlabel={\labelsize $M$}] %title = KMit,
\addplot3[surf, shader=flat] file {ceskmfp-distobslen.dat};
\nextgroupplot[xlabel={\labelsize $M$}, ylabel={\labelsize $\sigma$}] % title = NNPC,
\addplot3[surf, shader=flat] file {cesnnpc-obslensigman.dat};
\nextgroupplot[xlabel={\labelsize $M$}] %title = KM,
\addplot3[surf, shader=flat] file {ceskm-obslensigman.dat};
\nextgroupplot[colorbar, xlabel={\labelsize $M$}] %title = KMit,
\addplot3[surf, shader=flat] file {ceskmfp-obslensigman.dat};
\nextgroupplot[xlabel={\labelsize $M$}, ylabel={\labelsize $1/p$}] % title = NNPC,
\addplot3[surf, shader=flat] file {cesnnpc-obslenp.dat};
\nextgroupplot[xlabel={\labelsize $M$}] %title = KM,
\addplot3[surf, shader=flat] file {ceskm-obslenp.dat};
\nextgroupplot[colorbar, xlabel={\labelsize $M$}] %title = KMit,
\addplot3[surf, shader=flat] file {ceskmfp-obslenp.dat};
\end{groupplot}
\end{tikzpicture}
\caption{\label{fig:phasediag} Results of the synthetic data experiment. First row: CE (color-coded) as a function of $\sigma$ and $d(\powpar{X}{1},\powpar{X}{2})$ for $M = 400$ and $p = 1$. Second row: CE (color-coded) as a function of $M$ and $d(\powpar{X}{1},\powpar{X}{2})$ for $\sigma = 0.5$ and $p =1$. Third row: CE (color-coded) as a function of $M$ and $\sigma$ for $\nu_2 = 0.62 \pi$ ($d(\powpar{X}{1},\powpar{X}{2}) \approx 0.2$) and $p = 1$. Bottom row: CE (color-coded) as a function of $M$ and $1/p$ for $\nu_2 = 0.62 \pi$ and $\sigma = 0.5$.}
\end{figure}
\end{document}