November 2018
Beginner to intermediate
214 pages
5h 2m
English
There are many different options available to annotate a particular region.
# Customize the arrow (arrowstyles with attributes)nums = np.arange(0,10,0.1)plt.plot(nums, np.sin(nums))plt.annotate("look!", xy=(np.pi/2, 1), xytext=(5,0), arrowprops=dict(arrowstyle='fancy,head_length=2,head_width=2'))
The preceding code gives us the following output:

So far, we have been looking at very straight arrows—with annotate, we have the ability to actually curve these arrows along arcs. This ...
Read now
Unlock full access