# externalizing groupplots [closed]

I'm using the pgfplots-package. Being very new to it I just found out how to use the externalize command. Now after successfully compiling my worksheet I looked up in the progam directory finding more externalized plots than there are in my document.

This "problem" especially occurs with the groupplot command. That means a plot with three groups is externalized three times. Besides there are double question marks on top of the groupplots. Does somebody now why this happens? And how I can solve this problem?

I'm using MikTeX 2.9 and compiled the document with pdflatex -enable-write18 <file name>.

MWE:

\documentclass{article}
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{pgfplots.groupplots}
\usetikzlibrary{external}
\tikzexternalize[shell escape=-enable-write18]

\begin{document}

\begin{tikzpicture}
\pgfplotsset{every y tick scale label/.style={at={(0,-\pgfplotsvalueoflargesttickdimen y -0.3em)},anchor=east,inner sep=0pt}}
\begin{groupplot}[
group style= {  columns=3,xlabels at=edge bottom,
y descriptions at=edge left,
horizontal sep=0cm,group name=plots},
width=0.4\textwidth,
height=0.45\textwidth,
ymin=0, ymax=40,
enlarge x limits={rel=.5},
ybar,ylabel={ylabel},
/pgf/bar shift=0pt,/pgf/bar width=0.5cm,
xtick=data,legend columns=3,
xtick pos=left,
ymajorgrids=true,]
%  \Rapperswil
\nextgroupplot[xlabel=Rapperswil]
% \Palermo
\nextgroupplot[xlabel=Palermo]
% \Jeddah
\nextgroupplot[xlabel=Jeddah]
\end{groupplot}

\end{tikzpicture}

\end{document}

-
I have not experienced this problem with groupplot. The externalize feature ships out the entire tikzpicture environment. Not individually axis environments. Would you please state your version of pgf and pgfplots and give a MWE of the problem. (I am currently using groupplot and external without any problems) – zeroth Jan 9 '12 at 12:11
In order to give a MWE I tried to excerpt one of plots in another document. After getting it working I recognized that this time there are no duplicates of the groupplot. In the original document I have some sort of skeleton in wich I include several chapters using the input-command. Maybe the problem is in there. But this is not the big matter. The real PROBLEM are the questionmarks above the plot – Lorzen Jan 9 '12 at 12:37
This has nothing to do with groupplot. It has to do with the reference you make to the legend. This is a dublicate of: tex.stackexchange.com/questions/12412/…. And that is not a MWE. It is the questioneers job to make it through testing down to the MWE so that the answering person does not need to do this... – zeroth Jan 9 '12 at 12:52
@zeroth: Yes, you're right. It has neither to do with the groupplot nor with the input-command. So in the new, shortened MWE the problem doesn't occure. Great, a solution for no problem. I will try the rx package. – Lorzen Jan 9 '12 at 13:41

## closed as too localized by Jake, Stefan Kottwitz♦Jan 10 '12 at 6:45

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.