【发布时间】:2016-05-23 21:28:33
【问题描述】:
我正在寻找一种将 matplotlib 图形保存为 EMF 文件的方法。 Matplotlib 允许我保存为 PDF 或 SVG 矢量文件,但不能保存为 EMF。
经过长时间的搜索,我似乎仍然找不到使用 python 执行此操作的方法。希望有人有想法。
我的解决方法是使用子进程调用inkscape,但这远非理想,因为我想避免使用外部程序。
我正在使用 wx 后端运行 python 2.7.5 和 matplotlib 1.3.0。
【问题讨论】:
-
看起来 EMF 支持已在
matplotlib v1.3中删除
标签: python python-2.7 svg matplotlib