I would like to embed the following plot:
inside this backup diagram at the place where I've written "hi":
Desired result:
Do you know of any way I could do this with Tikz? Thanks, your help would be greatly appreciated.
EDIT:
Here's what I have cobbled together so far, I used the intersections library for it:
% Tree like backup diagram
\tikzset{
state_node/.style={circle, draw=black, scale=1.2},
action_node/.style={circle, fill=black, scale=0.68},
}
\begin{figure}
\begin{tikzpicture}[level/.style={sibling distance=18mm/#1}]
\node[action_node] (a) {}
child {node[state_node] (s) {}
child {node[action_node] (a1) {}}
child {node[action_node] (a2) {}}
child {node[action_node] (a3) {}}
};
% I would like the graph to go here
\node[below] at (a3.south) {hi};
\draw [->] (a) edge (s);
\draw [name path=edge1, ->] (s) to (a1);
\draw [name path=edge2, ->] (s) to (a2);
\draw [name path=edge3, ->] (s) to (a3);
\path[name path=c] (s) circle (1);
\draw[name intersections={of=edge1 and c, by=intersection1},
name intersections={of=edge3 and c, by=intersection2},
-, shorten >=0pt]
(intersection1) to[bend right] (intersection2);
\end{tikzpicture}
\caption{Q-learning backup diagram}
\end{figure}
% Miniature graphs that I would like to embed above
\begin{tikzpicture}
\begin{axis} [
axis lines=middle,
xmin=0, xmax=1,
ymin=0, ymax=1,
xtick=\empty, ytick=\empty
]
\addplot table {
0.8 0
0.8 0.3
0.3 0.8
0 0.8
};
\addplot table[only marks] {
0.3 0.36
0.8 0.3
0.3 0.8
};
\end{axis}
\end{tikzpicture}



e1. Also, you haven't specified what documentclass you are using, or what tikzlibraries may be required. – Steven B. Segletes Jun 14 '21 at 20:47axisenvironment to inside the firsttikzpicture, and addat={(x,y)}to theaxisoptions, wherexandyare appropriate coordinates. – Torbjørn T. Jun 14 '21 at 21:41