November 2018
Beginner to intermediate
214 pages
5h 2m
English
The different selections in Matplotlib are as follows:
# Sliderax1 = plt.axes([0.25, 0.2, 0.65, 0.7])curve, = ax1.plot(nums, np.sin(nums))ax1.set_ylim(-10,10)ax2 = plt.axes([0.25, 0.1, 0.65, 0.03])def redraw(value): curve.set_ydata(value*np.sin(nums)) plt.gcf().canvas.draw()amp.on_changed(redraw)
We will get the following output:

Read now
Unlock full access