This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import matplotlib.pyplot as plt | |
try: | |
# Put matplotlib.pyplot in interactive mode so that the plots are shown in a background thread. | |
plt.ion() | |
while(True): | |
plt.show() | |
except KeyboardInterrupt: |