I want to reduce the amount of sample points latex uses for creating a pgf surface plot. My data file currently has a mesh of (41x401) points. I am looking for a way to implement the (each nth point=?) statement to reduce the mesh size to for example (41X41). I am using the following code to make a surface plot of the fairly large data set:
\begin{tikzpicture}
\begin{axis}[height=9cm,width=12cm]
\addplot3[surf,shader=interp] table[x index=0, y index=1, z index=2] {data.dat};
\end{axis}
\end{tikzpicture}
I am compiling this with LuaLaTex due to the the main memory size error I get when I compile the plot with pdfLaTex.
data file can be downloaded here: