【发布时间】:2014-04-21 22:33:21
【问题描述】:
我的动画工作需要很长时间和大量内存。我想将它提交到TORQUE 队列,但我不能在那些机器上使用 X。由于“默认”matplotlib 需要 X,我需要像这样导入它:
import matplotlib
matplotlib.use("AGG")
import matplotlib.pyplot as plt
...
传递给use() 方法的内容称为后端。后端的文档可以在here找到。
如果我使用 matplotlib.animate() 并希望将动画保存为 mp4 或 theora,我应该使用哪个后端?
【问题讨论】:
标签: python animation matplotlib backend