October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block plots a polar graph and annotates a point on it:
fig = plt.figure()ax = fig.add_subplot(111, projection='polar')
r = np.arange(0,1,0.001)theta = 2 * 2*np.pi * rax.plot(theta, r, color=[0.9,0.4,0.7], lw=3)
ind = 600pointr, pointtheta = r[ind], theta[ind]ax.plot([pointtheta], [pointr], 'D', markersize=10)
ax.annotate('a polar annotation', xy=(pointtheta, pointr), xytext=(1.0, 0.75), textcoords='figure fraction', arrowprops=dict(facecolor='red', ...Read now
Unlock full access