Re: [Matplotlib-users] Overlaying part of an matrix image on another.

2012-01-30 Thread Pål Gunnar Ellingsen
Hi Thank you very much, it worked perfectly :D Kind regards Pål On 27 January 2012 15:29, Tony Yu wrote: > > > On Fri, Jan 27, 2012 at 9:13 AM, Pål Gunnar Ellingsen wrote: > >> Hi >> >> I have a array, M, which is (4Nx4M), and an array (image), im, which is >> NxM. >> I can currently plot the

Re: [Matplotlib-users] Overlaying part of an matrix image on another.

2012-01-27 Thread Tony Yu
On Fri, Jan 27, 2012 at 9:13 AM, Pål Gunnar Ellingsen wrote: > Hi > > I have a array, M, which is (4Nx4M), and an array (image), im, which is > NxM. > I can currently plot the matrix as a 2d image using imshow using: > > import matplotlib.pyplot as plt > from matplotlib import cm > > # some code f

[Matplotlib-users] Overlaying part of an matrix image on another.

2012-01-27 Thread Pål Gunnar Ellingsen
Hi I have a array, M, which is (4Nx4M), and an array (image), im, which is NxM. I can currently plot the matrix as a 2d image using imshow using: import matplotlib.pyplot as plt from matplotlib import cm # some code for reading in the matrix cmap = cm.get_cmap('jet', 256) imM = plt.imshow(M, cm