November 2018
Beginner to intermediate
214 pages
5h 2m
English
We will add some text under the arrow, as shown in the following points:
# Add textnums = np.arange(0,10,0.1)plt.plot(nums, np.sin(nums))plt.annotate("1st peak", xy=(np.pi/2, 1), xytext=(5,0), arrowprops=dict(facecolor='k'))
We will thus get some text that begins at (5, 0), and the tip of our arrow pointing at PI over (2, 1):

# Customize textnums = np.arange(0,10,0.1) ...
Read now
Unlock full access