Here is an explanation of the code:
- theta and y are the data points for plotting the sine wave. Zero to 2*pi covers one cycle of the wave.
- xdata and ydata are the co-ordinates in the data co-ordinate system; in this case, their values are 3 and 0. We will see where this specific point is on the plot.
- xdisplay and ydisplay are the co-ordinates for the same point in display format. We have converted them using ax.transData.transform_point((xdata, ydata)).
- bbox specifies the bounding box style in which text will be displayed.
- arrowprops specifies the style of connection between the text describing the point and the actual point on the graph. We will learn more about text annotation in the next chapter.
- offset=72 is used to ...