This file contains 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 matplotlib.pyplot as plt | |
import numpy as np | |
def comet(x,y=None, time=0.05, fill=False): | |
""" | |
Displays a comet plot | |
by Sukhbinder |
This file contains 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 matplotlib | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from matplotlib.animation import FuncAnimation | |
""" | |
Snowfall with python matplotlib | |
Read more here https://sukhbinder.wordpress.com/?p=5193 | |
by Sukhbinder |
This file contains 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 matplotlib | |
import matplotlib.pyplot as plt | |
import numpy as np | |
from matplotlib.animation import FuncAnimation | |
# Fixing random state for reproducibility | |
np.random.seed(9740320) | |
## | |
# Author : Sukhbinder |
This file contains 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 sched | |
import time | |
import datetime | |
import subprocess | |
event_schedule = sched.scheduler(time.time, time.sleep) | |
def subprocess_say(msg): |