repez” post=72494`
\pgfplotsset{width=15cm,compat=1.3}
%colormap={violetnew}{color(0cm)=(black); color(4cm)=(white)}
% <-- moves axis labels near ticklabels (respects tick label widths) \begin{figure} \centering \begin{tikzpicture} \begin{axis}[ height=9cm, width=9cm, grid=major, ] \addplot gnuplot[id=filesuffix]{(-x**5 - 242)}; \addlegendentry{model} \addplot coordinates { (-4.77778,2027.60977) (-3.55556,347.84069) (-2.33333,22.58953) (-1.11111,-493.50066) (0.11111,46.66082) (1.33333,-205.56286) (2.55556,-341.40638) (3.77778,-1169.24780) (5.00000,-3269.56775) }; \addlegendentry{estimate} \end{axis} \end{tikzpicture} \caption{A larger example} \end{figure}` Errore: pgfplots: Sorry, the gnuplot-result file 'don.filesuffix.table'le>.gnuplot’ manually on the respective gnuplot file.. …lot gnuplot[id=filesuffix]{(-x**5 – 242)};
Ciao,
eccomi qui.
Ho compilato il tuo codice e funziona perfettamente:
`\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=15cm,compat=1.3}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
height=9cm,
width=9cm,
grid=major,
]
\addplot gnuplot[id=filesuffix]{(-x**5 – 242)};
\addlegendentry{model}
\addplot coordinates {
(-4.77778,2027.60977)
(-3.55556,347.84069)
(-2.33333,22.58953)
(-1.11111,-493.50066)
(0.11111,46.66082)
(1.33333,-205.56286)
(2.55556,-341.40638)
(3.77778,-1169.24780)
(5.00000,-3269.56775)
};
\addlegendentry{estimate}
\end{axis}
\end{tikzpicture}
\end{document}
`
[attachment=266]testgnuplotpgfplots.png[/attachment]
Sembra quindi essere un problema di configurazione, forse di ricerca dei percorsi dell’eseguibile di gnuplot.
Saluti.
R.