我正在寻找一种将 matplotlib 图保存为 EMF 文件的方法。Matplotlib 允许我保存为 PDF 或 SVG 矢量文件,但不能保存为 EMF。
经过长时间的搜索,我似乎仍然找不到用 python 来做到这一点的方法。希望有人有想法。
我的解决方法是使用子进程调用inkscape,但这远非理想,因为我想避免使用外部程序。
我正在使用 wx 后端运行 python 2.7.5 和 matplotlib 1.3.0。
python svg matplotlib python-2.7
matplotlib ×1
python ×1
python-2.7 ×1
svg ×1