有没有办法使用“matplotlib"生成 Retina 图? [英] Is there a way to generate Retina graphs using 'matplotlib'?

查看:48
本文介绍了有没有办法使用“matplotlib"生成 Retina 图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Python 的 matplotlib 默认不生成 Retina 显示质量的 LaTeX 文本.是否存在可产生Retina品质输出的设置或附加软件包?

Python's matplotlib does not generate Retina display quality LaTeX text by default. Are there settings or add-on package that generate Retina quality output?

推荐答案

您是否使用'Agg'模式(标准)创建PNG图形?

Are you using 'Agg' mode (standard) to create PNG Graphs?

您可以使用 Matplot lib 创建 SVG 图形,使用质量更好

You can create SVG Graphs with Matplot lib which have way better quality using

matplotlib.use('svg')

这篇关于有没有办法使用“matplotlib"生成 Retina 图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆