October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block displays a plot on which a point (3, 0) is annotated with an arrow:
plt.plot(theta, np.sin(theta), 'b-*')a = plt.annotate("(3,0)", xy=(3, 0), xycoords='data', xytext=(4.0, 0.5), textcoords='data', arrowprops=dict(arrowstyle="->", color="green", lw=5, connectionstyle=("arc3,rad=0.")))plt.setp(a, size=25)plt.show()
Read now
Unlock full access