[IPython-User] Displaying multiple images?
Thu Nov 15 09:40:08 CST 2012
Since imshow is a pyplot function, the first time it is called, it
creates a figure object for you. Then subsequent calls only draw to
that already existing figure. So you can create multiple figures by hand:
for i in range(0,3):
fig, ax = subplots(1,1)
img = plt.imread('image-'+i+'.png')
But since you're really just displaying images and not creating plots,
the ipython display(Image(...)) technique others have suggested is
On 11/15/2012 07:20 AM, Darren Govoni wrote:
> I am wanting to display multiple images in a loop and have each one
> displyed in my notebook. For example:
> for i in range(0,3):
> img = plt.imread('image-'+i+'.png')
> But it only shows one image instead of 4.
> How can I display multiple images from a cell?
> IPython-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User