我正在尝试制作一个图表:
from matplotlib import *
import sys
from pylab import *
f = figure ( figsize =(7,7) )
但是当我尝试执行它时,我会遇到这个错误:
File "mratio.py", line 24, in <module>
f = figure( figsize=(7,7) )
TypeError: 'module' object is not callable
我之前已经运行过类似的脚本,并且我认为我已经导入了所有相关的模块。
figure
? - tacaswellimport pylab; print pylab.__file__
并给我们结果。 - Winston Ewert