matrix in \node tikzplot
\documentclass[tikz,border=2]{standalone}
\usepackage{amsmath}
\usepackage{pgfplots}
\usetikzlibrary{shapes,snakes,calc}
\tikzstyle{connector} = [->,thick]
\newsavebox\myboxa
\newsavebox\myboxb
\savebox\myboxa{%
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
width=4cm,
]
\addplot coordinates {(0,0) (2,-3) (4,5)};
\end{axis}
\end{tikzpicture}%
}
\savebox\myboxb{%
\begin{tikzpicture}
\begin{axis}[
axis lines=middle,
width=4cm
]
\addplot+[no marks] {x^2};
\end{axis}
\end{tikzpicture}%
}
\begin{document}
\begin{tikzpicture}[x=3in,y=2in]
\tikzstyle{ann} = [draw=none,fill=none,right]
\matrix[nodes={draw, thick, fill=none},
row sep=0.3cm,column sep=0.5cm] {
\node[draw=none,fill=none,label={below:$\mathbf{u}$}] (N1) {\usebox\myboxa}; &
\node[rectangle, minimum height=0.5in, minimum width = 0.75in] (N2) {Center}; &
\node[draw=none,label={below:$\mathbf{y}$}] (N3) {\usebox\myboxb};\\
};
\draw [connector] (N1) -- node {} (N2);
\draw [connector] (N2) -- node {} (N3);
\end{tikzpicture}
\end{document}
Are there any code examples left?
New code examples in category Other
-
Other 2023-03-27 22:50:10 how to select the whole line in vscode with keyboard shortcut
-
Other 2022-03-27 22:45:24 income of a web developer
-
Other 2022-03-27 22:35:01 \pyrcc_main.py: File does not exist 'resources.qrc'
-
Other 2022-03-27 22:30:45 rick roll embed code
-
Other 2022-03-27 22:20:08 Circuit_04_Potentiometer
-
Other 2022-03-27 22:20:05 iterative power
-
Other 2022-03-27 22:15:11 flutter run all
-
Other 2022-03-27 22:10:05 when is karlson release
-
Other 2022-03-27 22:10:02 wp .htaccess example
-
Other 2022-03-27 22:00:08 bash pause in file read line by line