How can I put two bayesnet object in a row with one caption for the whole?
The post about tikzpicture Two tikzpictures side by side does not work in the sense that:
picture size is in fact not adjustable when I change 0.33 to some other number
two pictures lines up vertically, instead of horizontally.
\begin{center} \begin{tikzpicture}[scale=0.33] ... \end{tikzpicture}% pic 1 \qquad % <----------------- SPACE BETWEEN PICTURES \begin{tikzpicture}[scale=0.33] ... \end{tikzpicture}% pic 2 \end{center}
MWE as requested in the comment:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{bayesnet}
\begin{document}
\begin{center}
\begin{tikzpicture}[scale=0.33]
\node[obs] (y11) {$Y_{11}$};
\node[obs, right = of y11] (y12) {$Y_{12}$};
\node[obs, right = of y12] (y13) {$Y_{13}$};
\node[latent, below = of y11] (mu1) {$\mu_1$};
\node[latent, right = of mu1] (mu2) {$\mu_2$};
\node[latent, right = of mu2] (mu3) {$\mu_3$};
\node[latent, right = of mu3] (sigma1) {$\sigma_1$};
\node[latent, right = of sigma1] (sigma2) {$\sigma_2$};
\node[latent, right = of sigma2] (sigma3) {$\sigma_3$};
\node[obs, below = of mu1] (y21) {$Y_{21}$};
\node[obs, right = of y21] (y22) {$Y_{22}$};
\node[obs, right = of y22] (y23) {$Y_{23}$};
\node[const, above = of sigma2] (beta) {$\beta$};
\edge {beta} {sigma1};
\edge {beta} {sigma2};
\edge {beta} {sigma3};
\edge {mu1} {mu2};
\edge {mu2} {mu3};
\edge {mu1} {y12};
\edge {mu2} {y13};
\edge {mu3} {y11};
\edge {mu1} {y22};
\edge {mu2} {y21};
\edge {mu3} {y23};
\edge {sigma1} {y12};
\edge {sigma2} {y13};
\edge {sigma3} {y11};
\edge {sigma1} {y22};
\edge {sigma2} {y21};
\edge {sigma3} {y23};
\end{tikzpicture}
~%
\begin{tikzpicture}[scale=0.33]
\node[factor] (n) {} {};
\node[obs, below = of n] (y) {$Y_i$};
\node[latent, above = of n] (sigma) {$\Sigma$};
\node[latent, left = of sigma] (mu) {$\vec\mu$};
\node[latent, right = of n] (f) {$f_i$};
\node[factor, above = of sigma] (exp) {} {};
\node[const, above = of exp] (beta) {$\beta$};
\plate {yf} {(y)(f)} {$n$};
\factoredge {mu} {n} {y};
\factoredge {sigma} {n} {y};
\factoredge {f} {n} {y};
\edge {beta} {sigma};
\end{tikzpicture}
\end{center}
\end{document}

\documentclass... – BambOo Aug 08 '18 at 22:36