Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python:如何将 Sympy 图像导出为 png?
谁对此有任何想法?
使用saveimage方法:
saveimage
import sympy x, y, z = sympy.symbols('xyz') p = sympy.Plot(x * y ** 3 - y * x ** 3) p.saveimage('/tmp/plot.png', format='png')