1
我的問題是我想調用matplotlib函數中的變量,但它給了我一個錯誤。也許它不可能。Matplotlib直方圖標題
sigma = float(some number)
ax1.hist(population)
ax1.set_title('blah N = 241', 'standard deviation =',sigma)
它會返回錯誤:
AttributeError: 'str' object has no attribute 'pop'
或
AttributeError: 'int' object has no attribute 'pop'