Is it possible to let TikZ save and in subsequent compilation runs use the plot points generated with the PGF math library?
A (simple) example of such a function plotted that way is:
\begin{tikzpicture}
\draw plot (\x,{sin(2*pi*\x r)});
\end{tikzpicture}
Here, the PGF math library is used to calculate sin(2*pi*\x r)
. For complex expressions, this is quite time-intensive. I assume this time could be saved if the plot points were available as is the case when using a gnuplot ‘function
’ plot. Then (if the plot is given an id
) the plot points generated by gnuplot are saved to a .table
file, so that they need not be regenerated unless the plot parameters have changed.
pgfplotstable
and use it afterwards to plot it.