Resampling Data
Downsampling lowers the sample rate or sample size of a signal. In this tutorial, the signal is downsampled when the plot is adjusted through dragging and zooming.
import matplotlib.pyplot as plt
import numpy as np
# A class that will downsample the data and recompute when zoomed.
