http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.subplot
HTH
--
Luis Pedro Coelho | Carnegie Mellon University | http://luispedro.org
On Thu, Mar 24, 2011 at 5:49 PM, jip <jeanpatri...@gmail.com> wrote:
> Is there a simple way to display multiple images of various size with
> matplotlib ...or something else?
Do you want to display them as a montage or scroll through them individually?
Regards
Stéfan
On Tue, Mar 29, 2011 at 11:33 AM, jip <jeanpatri...@gmail.com> wrote:
> I try to make a montage. I have an example here:http://
> dip4fish.blogspot.com/2011/03/trying-to-make-images-mosaic-with.html
> I tried without success pylab.subplot (see the script), I try also to
> understand how could I do with chaco. pygame might also be a
> solution...
I think a library that gives you access to a canvas may be useful.
The simplest method is to construct a large array of zeros, and to
then simply update the values to the different images, and plot it as
a single image. Another option would be to use something like Cairo
or Pyglet, and ask it to display the images at the appropriate
positions.
Regards
Stéfan
subplot(2,2,1)
imshow(upperleftimage)
subplot(2,2,2)
imshow(upperrightimage)
subplot(2,2,3)
imshow(lowerrleftimage)
subplot(2,2,4)
imshow(lowerrightimage)
In your case, you had subplot(2,1,3) where 3 is larger than the number
of subplots. This needs to be less or equal to the product of the
first two numbers 2*1=2.
Hope that helps.
/Jan Erik
--
phone:+1 415 601 2246 / skype:jesolem / twitter:jesolem