I want to plot a polynomial that is parametrized by an additional parameter d. I took samples of the domain of d and stored the coefficients of the polynomial for each of these samples in a table:
d a0 a1 a2 a3 a4
0 0.31632 0.038794 -0.637117 0.457322 -0.0940009
0.002 0.316319 0.0387949 -0.637115 0.457321 -0.0940008
0.4 0.130744 0.0171396 -0.292042 0.2209 -0.0479512
...
Now I would like to plot up to 100 of these polynomials into the same plot. Is there a way that does not require me to hand code each polynomial to plot or to sample each polynomial in an external tool? (Doing so from within the Latex tool chain would be fine.)
To summarize it: In my case, the rows of the table don't represent coordinates to plot but coefficients of polynomials that I want to plot. Therefore, I don't see how to use pgfplot's \addplot table
to get the output that I want.
The effect of the code should be like
\documentclass{standalone}
\usepackage{pgfplots, pgfplotstable}
\pgfplotsset{compat=1.12}
\begin{document}
\begin{tikzpicture}
\begin{axis}[domain=0:2]
\addplot[mark=none] {0.31632 + x*(0.038794 + x*(-0.637117 + x*(0.457322 + x*-0.0940009)))};
\addplot[mark=none] {0.311765 + x*(0.0408345 + x*(-0.633668 + x*(0.454718 + x*-0.0935363)))};
\addplot[mark=none] {0.130744 + x*(0.0171396 + x*(-0.292042 + x*(0.2209 + x*-0.0479512)))};
\end{axis}
\end{tikzpicture}
\end{document}
but without the manual repetition.
The result would look like: