您的位置:首页 > 编程语言 > Python开发

python matplotlib画图产生的Type 3 fonts字体没有嵌入问题

2015-01-29 22:06 1351 查看
ScholarOne's 对python matplotlib画图产生的Type 3 fonts字体不兼容,更改措施:

在程序中添加如下语句

import matplotlib

matplotlib.rcParams['pdf.fonttype'] = 42

matplotlib.rcParams['ps.fonttype'] = 42

这使得matplotlib to 使用Type 42字体来生成PostScript 和PDF 文件.

matplotlib.rcParams['text.usetex'] = True

也可以这样强制生成Type 1 fonts, 不过可能会改变图形

参考自:http://www.phyletica.com/?p=308
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: