Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on May 21, 2012
@xyb xyb fix demo for mac osx e11ad52
Roger Merge pull request #3 from xyb/master
fix demo for mac osx from xyb
a7425a7
Showing with 12 additions and 2 deletions.
  1. +1 −0  README.md
  2. +11 −2 demo_waterfall.py
View
1  README.md
@@ -9,6 +9,7 @@ and also provides a more Pythonic API.
* Windows/Linux/OSX
* Python 2.7.x
+* distribute (a fork of the Setuptools project)
* librtlsdr (builds dated after 5/5/12)
* **Optional**: NumPy (wraps samples in a more convenient form)
View
13 demo_waterfall.py
@@ -3,6 +3,7 @@
from matplotlib.mlab import psd
import pylab as pyl
import numpy as np
+import sys
from rtlsdr import RtlSdr
# A simple waterfall, spectrum plotter
@@ -127,7 +128,15 @@ def update(self, *args):
def start(self):
self.update_plot_labels()
- ani = animation.FuncAnimation(self.fig, self.update, interval=50, blit=True)
+ if sys.platform == 'darwin':
+ # Disable blitting. The matplotlib.animation's restore_region()
+ # method is only implemented for the Agg-based backends,
+ # which the macosx backend is not.
+ blit = False
+ else:
+ blit = True
+ ani = animation.FuncAnimation(self.fig, self.update, interval=50,
+ blit=blit)
pyl.show()
@@ -150,4 +159,4 @@ def main():
if __name__ == '__main__':
- main()
+ main()

No commit comments for this range

Something went wrong with that request. Please try again.