Here is the explanation of the code:
- fig.add_subplot(111, projection='polar') defines the axes and declares it as a polar plot. In place of projection='polar', you can also use polar=True
- r and theta set the data for radius and angle for the plot of the polar coordinates
- ax.plot(theta, r, color=[0.9,0.4,0.7], lw=3) plots the polar chart with theta and r:
- Color is specified with R, G, and B color values to create a custom color. R, G, and B values vary from 0 (dark) to 1 (bright).
- lw=3 specifies a line width of 3 for the polar chart.
- ax.plot([pointtheta], [pointr], 'D', markersize=10) plots a point in a diamond shape on the polar chart, with coordinates pointtheta and pointr; it is denoted by its index (600) in the list ...