嗨:我有一台 win 7 64 位机器,并尝试使用 PyX 的示例(http://pyx.sourceforge.net/examples/drawing/index.html)。我已经使用 python 2.7 和 3.5(在安装 3.5 之前卸载了 2.7)尝试了它们。在所有情况下,PyX 都会将其文件写入我的硬盘,但我的计算机屏幕上什么也没有显示??这是第一个示例,来自: http: //pyx.sourceforge.net/examples/drawing/path.html
from pyx import *
c = canvas.canvas()
c.stroke(path.line(0, 0, 3, 0))
c.stroke(path.rect(0, 1, 1, 1))
c.fill(path.circle(2.5, 1.5, 0.5))
c.writeEPSfile("path")
c.writePDFfile("path")
c.writeSVGfile("path")
有谁知道出了什么问题?谢谢,史蒂夫