I have 4 plots generated by pgfplots that I would like vertically and horizontally aligned. They are all included in my main file via \input. Due to memory constraints two of them live in one file while the other two are in separate files. I use the externalize feature to prevent re-compilation of the plots every time I compile my document. Here's the part of my main file that pertains to the plots:
\begin{figure}
\centering
\input{Inhalt/Abbildungen/LaTeX/TailDependence_Funktionen}
\input{Inhalt/Abbildungen/LaTeX/Scatterplot_norm}
\input{Inhalt/Abbildungen/LaTeX/Scatterplot_t}
\caption{Funktionen und Scatterplot}
\end{figure}
I've tried various combinations of trim axis leftand trim axis right. All plots are scaled to 0.81. I can get close by using trim axis lefton the plots on the left side and trim axis righton the plots on the right side. So my tikzpicture environments look like this:
\begin{tikzpicture}[scale=0.81, trim axis left]
or
\begin{tikzpicture}[scale=0.81, trim axis right]
This is what it looks like right now:

I would like the y-axes of the two plots on the left aligned as well as the y-axes of the two plots on the right. At the moment the alignment is a little off.
As my plots rely on external data files I'm not sure how to provide a MWE but will try my best if necessary.

groupplotfunctions inpgfplots? You might find it easier to group all four plots in pgf and then externalize the result (to avoid recompilation) - or make a PDF with an external tool, like "lattice" graphics in R, which excels at multiple plots like this. – Thruston Mar 22 '15 at 10:30ylabel absolute. This will position the y labels at exactly the same distance to the axis (without respecting any tick labels). It is essentially the same idea as suggested by @percusse except that this uses a predefined distance. – Christian Feuersänger Oct 07 '17 at 11:41