fig, ax = plt.subplots(figsize=(4, 3)) np.random.seed(19680801) t = np.arange(100) x = np.cumsum(np.random.randn(100)) lines = ax.plot(t, x)