1
我有一個程序,使動畫與線matplotlib然後errorbars(垂直) 我開始空的東西與此Matplotlib動畫不允許我創建底部和頂部的Line2D
errorline_g, (bottomsg,topsg), (vertsg,) = ax.errorbar([],
[],yerr=1,fmt='-o',color='green')
它一直工作,但現在(更新至最新的Ubuntu)我有一個錯誤:
ValueError: need more than 0 values to unpack
,如果我嘗試 errorline_g,caplineg,barlinecolg = ax.errorbar([], [],yerr = 1,FMT =' - o',color ='green')
print errorline_g
Line2D中(_line9)C
print caplineg, barlinecolg
()()
這是兩個空的元組順便說一句,然後我不能與元組再設定數據。
matplotlib是否有任何重大變化導致了這種情況? 如何更新我的代碼以使其工作?
感謝您提前提供任何幫助!
JM
請出示您的完整代碼,最好帶有一些製作數據 - 請參閱[這裏](http://stackoverflow.com/help/mcve)創建一個MCVE。 – Ajean
我修好了。而不是[]我用列表中的第一個值繪製後。謝謝。 –