Tag Info

New answers tagged

4

You can do it with \draw[thick,red] (group c1r1.north) -- (group c1r2.south); Code: \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{groupplots,units} \pgfplotsset{compat=1.11} \begin{document} \begin{tikzpicture} \begin{groupplot}[ group style = {group size=1 by 2, x descriptions at=edge bottom, vertical sep=0.2cm}, ...


6

You could add a \coordinate in the top and bottom groupplot, and draw the line afterwards using those as a reference. \documentclass{standalone} \usepackage{pgfplots} \usepgfplotslibrary{groupplots,units} \begin{document} \begin{tikzpicture} \begin{groupplot}[ group style = {group size=1 by 2, x descriptions at=edge bottom, vertical sep=0.2cm}, ...


2

You have to set the total number of plots that will be in the groupplot environment using either group size=1 by 2 or columns=1 and rows=2. Note, that the initially value is group size=1 by 1 that means columns=1 androws=1`. So you could use \begin{groupplot}[ group style={group size=1 by 2, vertical sep=2cm}, xlabel=Order of spot, ...


1

You might find the following approach helpful. Here I just add the label to the second plot (the one with the widest labels) and place it relative to the second plot's axis at 10% above. This has the advantages of (a) using the standard labelling style and (b) positioning that will vary in a sensible way with different plot sizes. The main choice being ...



Top 50 recent answers are included