Matplotlib - Interactive Features
Given this code snippet:
What does the slider do?
import matplotlib.pyplot as plt from matplotlib.widgets import Slider fig, ax = plt.subplots() plt.subplots_adjust(bottom=0.25) ax.plot([1, 2, 3], [1, 4, 9]) slider_ax = plt.axes([0.25, 0.1, 0.65, 0.03]) slider = Slider(slider_ax, 'Scale', 0.1, 2.0, valinit=1) plt.show()
What does the slider do?
