0

Anyone know how to get it working? Unfortunately it seems by default specgram's code wants to generate an image, which I have no use for, only the data behind the image. The error I get is:

_tkinter.TclError: no display name and no $DISPLAY environment variable
4

1 回答 1

1

您可以设置一个 matplotlib 后端,它不需要附加显示:

import matplotlib
matplotlib.use('pdf')

这些行应该在导入pylab.

于 2013-06-14T07:16:30.537 回答