I am writing a report containing multiple plots of spectroscopic data by way of PGFplots which is fetching data from external files. It used to do the work, and after a few minutes of compilation it would render a pdf, but as I added more results to be plotted it slowed down and now it does not appear to ever finish. (I have waited for about an hour now)
The code I use is pretty much a repeat of this for thirteen different csv files, ranging between two columns and ten.
\documentclass{article}
\usepackage{graphicx,tikz}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[xlabel near ticks,axis background/.style={
fill=gray!70},width=\textwidth,height=0.4\textwidth,xticklabel=eV,
ymin=0,enlargelimits=false,ylabel=Counts,no marks,grid,cycle list name=color list]
\addplot table[x index=1,y index=2,col sep=space,row sep=crcr] {spectroscopy_data.csv};
\addlegendentry{C$_{\text{K}\alpha}$}
\addplot table[x index=1,y index=3,col sep=space,row sep=crcr] {spectroscopy_data.csv};
\addlegendentry{O$_{\text{K}\alpha}$}
\end{axis}
\end{tikzpicture}
\end{document}
zeroth: That does seem to help! Thank you very much :)
– The V Apr 11 '13 at 06:45