- 积分
- 2209
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2018-1-10
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
请问有没有大佬知道怎么成功输出eps图片?
当输出的图片中不包含文字(字母,数字等)时可以成功输出。但是一旦存在刻度标题等则出现 TrueType Font is missing的错误,输出图片用Ai打开为空白图片。
下面为错误信息
File "D:\test\program\6-plotScatterContourf_modified.py", line 126, in <module>
fig.savefig('foo.eps', format='eps', dpi=1000)
File "C:\Users\qlxcpt\anaconda3\lib\site-packages\matplotlib\figure.py", line 2180, in savefig
self.canvas.print_figure(fname, **kwargs)
File "C:\Users\qlxcpt\anaconda3\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 94, in print_figure
super().print_figure(*args, **kwargs)
File "C:\Users\qlxcpt\anaconda3\lib\site-packages\matplotlib\backend_bases.py", line 2091, in print_figure
**kwargs)
File "C:\Users\qlxcpt\anaconda3\lib\site-packages\matplotlib\backends\backend_ps.py", line 842, in print_eps
return self._print_ps(outfile, 'eps', *args, **kwargs)
File "C:\Users\qlxcpt\anaconda3\lib\site-packages\matplotlib\backends\backend_ps.py", line 871, in _print_ps
**kwargs)
File "C:\Users\qlxcpt\anaconda3\lib\site-packages\matplotlib\backends\backend_ps.py", line 1107, in _print_figure
print_figure_impl(fh)
File "C:\Users\qlxcpt\anaconda3\lib\site-packages\matplotlib\backends\backend_ps.py", line 1046, in print_figure_impl
fh, fonttype, glyph_ids)
RuntimeError: TrueType font is missing table
|
|