Matplotlib range slider. With the following code: .