roger-/pyrtlsdr — pull request #3 by xyb (2012-05-21 02:54:35+00:00)
Title: fix demo for mac osx

The demo `demo_waterfall.py` do not work with mac osx:

Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backend_bases.py", line 1092, in _on_timer
ret = func(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/animation.py", line 315, in _step
still_going = Animation._step(self, *args)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/animation.py", line 177, in _step
self._draw_next_frame(framedata, self._blit)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/animation.py", line 195, in _draw_next_frame
self._pre_draw(framedata, blit)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/animation.py", line 208, in _pre_draw
self._blit_clear(self._drawn_artists, self._blit_cache)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/animation.py", line 248, in _blit_clear
a.figure.canvas.restore_region(bg_cache[a])
AttributeError: 'FigureCanvasMac' object has no attribute 'restore_region'

Since the matplotlib.animation's blitting do not work in mac osx[1][2], I disable it and run the demo succeed.

[1] http://comments.gmane.org/gmane.comp.python.epd.user/486
[2] http://www.digipedia.pl/usenet/thread/15998/29360/