I created these figures in tikzpictures. The two left ones are the first figure and the two right ones are the second figure.
How can I give them two separate captions respectively while keep both figures next to each other? If I add a second caption, the second figure always goes to the next line.
MWE:
\documentclass[12pt]{article}
\usepackage{caption}
\usepackage{tikz-qtree}
\usetikzlibrary{arrows.meta}
\usepackage{subcaption}
\begin{document}
\captionsetup[subfigure]{labelformat=empty}
\begin{figure}[ht]
\centering
\begin{subfigure}[b]{0.25\textwidth}
\centering
\begin{tikzpicture}[scale=0.25]
\tikzstyle{every node}=[font=\tiny]
\draw
(4,9) node(a) [circle, draw] {}
(4,1) node(b) [circle, draw] {}
(1,3) node(c) [circle, draw] {};
\draw [->,line width=0.8pt](a) to (b);
\draw [->,line width=0.8pt](b) to (c);
\draw [->,line width=0.8pt](c) to (a);
\draw (3,4) ellipse (6cm and 10cm);
\end{tikzpicture}
\captionof{figure}{Q}
\end{subfigure}%
\begin{subfigure}[b]{0.25\textwidth}
\centering \begin{tikzpicture}[scale=0.25]
\tikzstyle{every node}=[font=\tiny]
\draw
(1,1) node(a) [circle, draw] {}
(0.5,9) node(b) [circle, draw] {}
(4,8) node(c) [circle, draw] {}
(4,4) node(d) [circle, draw] {};
\draw [->,line width=0.8pt](a) to (b);
\draw [->,line width=0.8pt](b) to (c);
\draw [->,line width=0.8pt](c) to (d);
\draw [->,line width=0.8pt](d) to (a);
\draw (3,4) ellipse (6cm and 10cm);
\end{tikzpicture}
\captionof{figure}{V-Q}
\end{subfigure}%
\begin{subfigure}[b]{0.25\textwidth}
\centering \begin{tikzpicture}[scale=0.25,remember picture]
\tikzstyle{every node}=[font=\tiny]
\draw
(3,1) node(x) [circle, draw] {}
(0,5) node(y) [circle, draw] {}
(2,9) node(z) [circle, draw] {};
\draw [->,line width=0.8pt](x) to (y);
\draw [->,line width=0.8pt](y) to (z);
\draw (3,4) ellipse (6cm and 10cm);
\end{tikzpicture}
\captionof{figure}{Q}
\end{subfigure}%
\begin{subfigure}[b]{0.25\textwidth}
\centering \begin{tikzpicture}[scale=0.25,remember picture]
\tikzstyle{every node}=[font=\tiny]
\draw
(1,9) node(a) [circle, draw] {}
(6,7) node(b) [circle, draw] {}
(6,3) node(c) [circle, draw] {}
(1,1) node(d) [circle, draw] {};
\draw [->,line width=0.8pt](a) to (b);
\draw [->,line width=0.8pt](b) to (c);
\draw [->,line width=0.8pt](c) to (d);
\draw (3,4) ellipse (6cm and 10cm);
\end{tikzpicture}
\captionof{figure}{V-Q}
\end{subfigure}%
\begin{tikzpicture}[overlay, remember picture]
\draw[->,line width=0.8pt] (d) to (x);
\draw[->,line width=0.8pt] (z) to (a);
\end{tikzpicture}
\caption{Figure X}
\end{figure}
\end{document}






\subcaption{}within subfigures? – Cragfelt Nov 21 '17 at 21:06figure(the two last circles) in the next line. – XsLiar Nov 21 '17 at 21:09minipageenvironments, since this is my usual solution. However it seems like usingminipagearound thesubfiguresdoes not really lead to the desired outcome unfortunately. – XsLiar Nov 21 '17 at 21:39