Using Matlab2tikz I generated a file containing 104 subplots aligned in a very specific manner. I then inserted \pgfplotsset{yticklabel style={text width=2em,align=right},}, compiled and obtained the final PDF which was fine, except the subplots arrangement is still not satisfactory:
I am trying to organize better the subplots such that:
- there will be the same vertically spacing,
- Only two
ylabelsper subplot
Is there a possibility to do this, without having to modify every single addplot?
Update:
Using the solution proposed from Stefan Pinnow, I noticed that the order is still wrong. This is because the generated *.tikz file started from the second subplot (from the left) in the bottom row and positioned following subplots relative to it. This of course made the resulting figure using groupplot completely wrong. Hence, I think i am obliged to stick to the axis environment, and play on the yticklabels to improve the spacing.
Any idea how to automatically fix three yticklabels per subplot?


groupplotmanually! Isn't there a better way? – user2536125 Feb 21 '16 at 19:46groupplotenvironment, but you have to place 104\nextgroupplotcommands. And I cannot suggest another solution when you don't state more details on where the plots in your above picture are coming from, if there are patterns of plots for the alignment and stuff like that. In short, when you are more precise on what you have and what you need, there maybe a chance for a "better" solution ;) – Stefan Pinnow Feb 21 '16 at 20:24