von esdd » So 11. Dez 2016, 21:42
Hier ist ein Vorschlag, bei dem ich das Paket subcaption verwende. Wenn Du unbedingt das veraltete subfigure nutzen willst, lässt sich das aber auch übertragen.
\documentclass[12pt,titlepage,a4paper]{report}
\usepackage{pgfplots}% lädt u.a. auch tikz, graphicx, xcolor
\pgfplotsset{compat=1.14}% wichtig, siehe http://texwelt.de/wissen/fragen/19163
\usetikzlibrary{arrows.meta}% zum Anpassen der Pfeile
\usepackage{subcaption}
\begin{document}
\begin{figure}[tbh]
\tikzset{
verbindung/.style={
draw=green!50!black,
very thick,
>={Latex[length=8pt,round]}
}
}
\subcaptionbox{Draufsicht}{%
\begin{tikzpicture}[remember picture]
\begin{axis}[
legend style={at={(0.5,1)},anchor=south , legend columns = 3}]
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{c,b, a}
\path[verbindung,->]
(.6,1.6|-current axis.south)
--
(.6,1.6)coordinate(s1)
;
\end{axis}
\end{tikzpicture}%
}
\subcaptionbox{Seitenansicht}{%
\begin{tikzpicture}[remember picture]
\begin{axis}[
legend style={at={(0.5,1)},anchor=south , legend columns = 3}]
\addplot coordinates {(0,3) (1,2)};
\addplot coordinates {(0,1) (1,0)};
\addplot coordinates {(0,2) (1,1)};
\legend{c,b, a}
\path[verbindung,->]
(.4,1.6)coordinate(s2)
--
(.4,1.6|-current axis.south)
;
\end{axis}
\end{tikzpicture}%
}%
\tikz[remember picture,overlay]\path[verbindung,->](s1)--(s2);
\caption{test}
\end{figure}
\end{document}
Hier ist ein Vorschlag, bei dem ich das Paket [tt]subcaption[/tt] verwende. Wenn Du unbedingt das veraltete [tt]subfigure[/tt] nutzen willst, lässt sich das aber auch übertragen.
[code]\documentclass[12pt,titlepage,a4paper]{report}
\usepackage{pgfplots}% lädt u.a. auch tikz, graphicx, xcolor
\pgfplotsset{compat=1.14}% wichtig, siehe http://texwelt.de/wissen/fragen/19163
\usetikzlibrary{arrows.meta}% zum Anpassen der Pfeile
\usepackage{subcaption}
\begin{document}
\begin{figure}[tbh]
\tikzset{
verbindung/.style={
draw=green!50!black,
very thick,
>={Latex[length=8pt,round]}
}
}
\subcaptionbox{Draufsicht}{%
\begin{tikzpicture}[remember picture]
\begin{axis}[
legend style={at={(0.5,1)},anchor=south , legend columns = 3}]
\addplot coordinates {(0,0) (1,1)};
\addplot coordinates {(0,1) (1,2)};
\addplot coordinates {(0,2) (1,3)};
\legend{c,b, a}
\path[verbindung,->]
(.6,1.6|-current axis.south)
--
(.6,1.6)coordinate(s1)
;
\end{axis}
\end{tikzpicture}%
}
\subcaptionbox{Seitenansicht}{%
\begin{tikzpicture}[remember picture]
\begin{axis}[
legend style={at={(0.5,1)},anchor=south , legend columns = 3}]
\addplot coordinates {(0,3) (1,2)};
\addplot coordinates {(0,1) (1,0)};
\addplot coordinates {(0,2) (1,1)};
\legend{c,b, a}
\path[verbindung,->]
(.4,1.6)coordinate(s2)
--
(.4,1.6|-current axis.south)
;
\end{axis}
\end{tikzpicture}%
}%
\tikz[remember picture,overlay]\path[verbindung,->](s1)--(s2);
\caption{test}
\end{figure}
\end{document} [/code]