如何调用gnuplot?

2019-12-07 00:48发布

已安装gnuplot,我尝试用`pdflatex -shell-escape`命令行编译MWE ```tex \documentclass{standalone} \usepackage{pgfplo...

已安装gnuplot,我尝试用`pdflatex -shell-escape`命令行编译MWE ```tex \documentclass{standalone} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[ xlabel=$x$, ylabel=$\sin(x)$ ] \addplot gnuplot[id=sin]{sin(x)}; \end{axis} \end{tikzpicture} \end{document} ``` 报错为`"message": "Package pgfplots: Sorry, the gnuplot-result file '123456789.sin.table' could not be found. Maybe you need to enable the shell-escape feature? For pdflatex, this is '>> pdflatex -shell-escape'. You can also invoke '>> gnuplot .gnuplot' manually on the respective gnuplot file..\n",` 是需要配置环境变量吗?我没有其他头绪