python - matplotlib动画中的参差不齐的字体
问题描述
我无法弄清楚为什么轴标题和刻度标签字体仅在我最近创建的特定 conda 环境(python 3.9)中的动画中看起来很糟糕。
我在 jupyter 实验室笔记本环境中。上图显示了做的输出
ani = FuncAnimation( ...)
HTML(ani.to_html5_video())
如您所见,第二个图(显示动画的最后一帧)文本字体很好。
但在动画中,文字看起来很粗糙。
我在不同的 conda 环境中拥有的另一个内核不会发生这种情况。
从表面上看,两者在matplotlib rcParams方面并没有什么不同。我还比较了这些 INFO 日志
INFO:matplotlib.animation:MovieWriter._run: running command: ffmpeg -f rawvideo -vcodec rawvideo -s 576x432 -pix_fmt rgba -r 1.0 -loglevel error -i pipe: -vcodec h264 -pix_fmt yuv420p -y /tmp/tmpyk844_02/temp.m4v
并没有什么特别的不同。
这可能是什么原因?
解决方案
推荐阅读
- python - 尝试将浮点数插入字符串时的随机数
- sql - 显式连接语法
- powershell - 将csv中的多行分组为一行并存储到变量
- vue.js - 如何在 Vue js 和 Laravel Passport 中使用 Scope 控制路由访问?
- javascript - 重复加载的 Javascript 文件是否会被多次解析?
- django - 如何修改管理员更改页面中显示的消息?
- machine-learning - Resnet 消失梯度
- node.js - 如何通过子域服务动态应用程序
- docker - docker中操作系统的主机名和IP地址不断变化
- typescript - 如何在打字稿中检测具有泛型的类实例