Re: [Matplotlib-users] show figures in a loop

2009-08-02 Thread Janwillem
Thanks for the hint, I now have: #figure is a matplotlib Figure #bitmap is a wx.StaticBitmap w_figure, h_figure = figure.get_size_inches() w_bitmap, h_bitmap = bitmap.GetSize() dpi = int(min(w_bitmap/w_figure,h_bitmap/h_figure)) figure.set_dpi(dpi)

Re: [Matplotlib-users] show figures in a loop

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 8:14 AM, Janwillem wrote: > > The problem: > I have files with time versus signal data of a large series of measurements. > The python application (using wxPython actually) scans the file, applies > some math (numpy/scipy) on each record of data and than must show the signal

Re: [Matplotlib-users] show figures in a loop

2009-08-02 Thread Janwillem
The problem: I have files with time versus signal data of a large series of measurements. The python application (using wxPython actually) scans the file, applies some math (numpy/scipy) on each record of data and than must show the signal as a plot. After clicking OK the next record of measuremen

Re: [Matplotlib-users] show figures in a loop

2009-08-02 Thread Sandro Tosi
Hello Janwillem, On Sun, Aug 2, 2009 at 14:11, Janwillem wrote: > > I have an application where I would like to use show in a loop but as stated > in 18.1 of the manual that does not work. > # WARNING : illustrating how NOT to use show > for i in range(10): >    # make figure i >    show() call s

[Matplotlib-users] show figures in a loop

2009-08-02 Thread Janwillem
I have an application where I would like to use show in a loop but as stated in 18.1 of the manual that does not work. # WARNING : illustrating how NOT to use show for i in range(10): # make figure i show() So I made a workaround in a custom wxDialog with a wxStaticBitmap and a few buttons