2013-07-10 30 views
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的元素之一。

我该怎么做?

+1

在图形之间很难移动轴,这就是你想要做的。最好将用于生成此列表的代码重新分解,以使函数将轴作为参数,然后绘制到这些轴。 – tacaswell

回答

0

那么,如果python matplotlib不起作用,你可以写出图像,然后使用imagemagick合并图形并按照你想要的方式调整大小。