I created a Figure consisting of 2 Tikz pictures. However, the two TikZ pictures are not correctly centered and are placed further on the right side of the page than they should be (see uploaded image).
The relevant part of my code looks as follows:
\begin{figure}
\centering
\sidesubfloat[]{
\begin{tikzpicture}[framed,scale=0.5,rotate=90,yscale=-1]
[....]
\end{tikzpicture}}
\sidesubfloat[]{
\begin{tikzpicture}[framed,scale=0.5,rotate=90,yscale=-1]
[....]
\end{tikzpicture} }
\end{figure}

\textwidth, so the second one sticks in the margin. – Pieter van Oostrum Dec 25 '16 at 19:18\usepackage{showframe}to check Piet van Oostrum's hypothesis. – Bernard Dec 25 '16 at 19:53height=.4\textwidthinstead ofscale=0.5– David Carlisle Dec 25 '16 at 20:06tikzpictures like that though, so perhapsscale=0.4. – Torbjørn T. Dec 25 '16 at 21:34begin{tikzpicture}[overlay,...if you do not mind violating some typographical rules. – Symbol 1 Dec 26 '16 at 06:53overlayhelp here? – Torbjørn T. Dec 26 '16 at 12:54\[\tikz[overlay]\node{\includegraphics{...}};\]the figure will be centered no matter how wide it is. – Symbol 1 Dec 26 '16 at 13:41tikzpictures is a\nodewith an image? And further it appears there are twotikzpictures side by side with the second one sticking into the right margin, andoverlaywont do any good in that case. – Torbjørn T. Dec 26 '16 at 14:36\tikz\path node[left]{...}node[right]{...};. The point is that\tikz[overlay]...does a lot of job that used to be possible only if one plays with TeX primitives. – Symbol 1 Dec 27 '16 at 01:14tikzpictures is a\nodewith an image? (You could be right, but from the information given it's not an assumption I would make.) – Torbjørn T. Dec 27 '16 at 08:02\makeboxor theadjustboxenvironment as in http://tex.stackexchange.com/a/39436/586 would likely do (i.e. add\usepackage{adjustbox}and put both subfloats between\begin{adjustbox}{center}and\end{adjustbox}). – Torbjørn T. Dec 27 '16 at 08:05