1
假設我有數字(figList)如下面的(在IPython中生成的輸出)的列表:創建從圖列表中matplotlib一個單一的數字
In [25]: figList
Out[25]: [<matplotlib.figure.Figure at 0x63a8d90>,
<matplotlib.figure.Figure at 0x638e3f0>,
<matplotlib.figure.Figure at 0x6669710>,
<matplotlib.figure.Figure at 0x69daeb0>,
<matplotlib.figure.Figure at 0x63a43f0>,
<matplotlib.figure.Figure at 0x6488ad0>,
<matplotlib.figure.Figure at 0x735f6d0>,
<matplotlib.figure.Figure at 0x79f41b0>,
<matplotlib.figure.Figure at 0x7848090>]
我希望能夠使用figList以生成由一組子圖組成的圖形,每個子圖形對應於figList的元素之一。
我該怎麼做?
在圖形之間很難移動軸,這就是你想要做的。最好將用於生成此列表的代碼重新分解,以使函數將軸作爲參數,然後繪製到這些軸。 – tacaswell