[英]Creating a single figure from a list of figures in matplotlib
假設我有一個數字列表(figList),如下所示(在iPython中生成的輸出):
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的一個元素。
我怎樣才能做到這一點?
好吧,如果python matplotlib不起作用,則可以寫出圖像,然后使用imagemagick合並圖並按所需方式調整其大小。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.