如果有人可以提供逐步帮助,以便在Windows中安装PGFPlots以在Julia中使用,我将非常感激。
http://nbviewer.jupyter.org/github/sisl/PGFPlots.jl/blob/master/doc/PGFPlots.ipynb#PGFPlots
该网站建议:
Pdf2svg. This is required by TikzPictures. On Ubuntu, you can get this by running sudo apt-get install pdf2svg and on RHEL/Fedora by running sudo dnf install pdf2svg. On Windows, you can download the binaries from http://www.cityinthesky.co.uk/opensource/pdf2svg/. Be sure to add pdf2svg to your path (and restart).
尽管如此,我还是不懂计算机专家:
To cross compile for Windows under Linux, simply install the relevant cross-compiler packages (for Fedora this is mingw32-cairo and mingw32-poppler and their dependencies) and then replace “./configure” in the compilation instructions above with “mingw32-configure”.
因此,如果有人能指出我正确的方向,那会很棒吗?
最佳答案
您引用的第二部分是关于在Linux下为pdf2svg编译Windows二进制文件,我相信这不是您想要的。
只是download this Github repository they referenced,它已经包含Windows的编译二进制文件。将适合您Windows安装(即32位或64位)的dist-32bits
或dist-64bits
提取到计算机中的某个位置。然后将包含pdf2svg.exe
的目录添加到PATH
系统变量。
您还需要安装pgfplots
,它是LaTeX软件包。因此,您还需要一个LaTeX发行版。您可以简单地安装 MiKTeX
,然后通过其软件包管理器/控制台安装pgfplots
。
而已。
关于windows - 在Julia和Windows中设置PGFPlot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50477281/