[pygtk] advice needed

Gabriel pygtk-user at gbeckers.nl
Wed Dec 20 17:26:10 WST 2006


Thanks; yes I use matplotlib for a lot of other things. But in this  
case I am not sure it is the best way to go. I have a huge pytables  
repository of relatively small and already calculated spectrograms  
(say 128x30 pixels) that I need to display, page after page. One  
screen can contain hundreds of them, so they need to be loaded  
relatively fast.

The thing is that I am new to pygtk (and gnome) and after reading  
various posts and articles, I am a bit confused about what the most  
straightforward way is to display many relatively small bitmaps on a  
canvas.

All best, Gabriel



Quoting Gian Mario Tagliaretti <g.tagliaretti at gmail.com>:

> 2006/12/19, Gabriel <pygtk-user at gbeckers.nl>:
>
>> I have series of spectrograms (image representations of sound)
>> available as 2-D numpy arrays. I want to show them on a canvas. What
>> would be the most efficient way of doing this? An example would be
>> greatly appreciated.
>
> have you considered to use matplotlib[1] which works smootly with pygtk
> as well?
>
> it has got a spectrogram example[2] and a screenshot[3] as well
> (search for eeg.py)
>
> [1] http://matplotlib.sourceforge.net
> [2] http://matplotlib.sourceforge.net/screenshots/eeg.py
> [3] http://matplotlib.sourceforge.net/screenshots.html
>
> cheers
> -- 
> Gian Mario Tagliaretti
> http://www.parafernalia.org/pygtk/




More information about the pygtk mailing list