Re: [Matplotlib-users] plot multiple times in one script fails

2009-08-20 Thread M. Hecht
Hi, ok meanwhile I found out that this is a typical beginners error, sorry. Nevertheless, using ion(), and ioff() together with draw() works fine. What I didn't find out up to now was the funtion ginput(n=1, timeout=30, show_clicks=True) which prevents me from killing the window after ever

Re: [Matplotlib-users] plot multiple times in one script fails

2009-08-19 Thread John Hunter
On Tue, Aug 18, 2009 at 3:55 AM, M. Hecht wrote: > The first figure is drawn without problems but after closing it (by clicking > the cross in the upper > right corner of the window) the second figure cannot be plot anymore. What I > wanted to do was > to visualize all selected files of a directory

Re: [Matplotlib-users] plot multiple times in one script fails

2009-08-19 Thread Ryan May
On Tue, Aug 18, 2009 at 3:55 AM, M. Hecht wrote: > > Hello, > > I'm totally new to matplotlib, so sorry if the question is stupid. > > I'm trying this slightly modified example from the examples page > > from pylab import * > A = rand(5,5) > figure(1) > imshow(A, interpolation='bicubic') > show()

[Matplotlib-users] plot multiple times in one script fails

2009-08-19 Thread M. Hecht
Hello, I'm totally new to matplotlib, so sorry if the question is stupid. I'm trying this slightly modified example from the examples page from pylab import * A = rand(5,5) figure(1) imshow(A, interpolation='bicubic') show() close(1) A = rand(5,5) figure(2) imshow(A, interpolation='bicubic') s