Here is the explanation for the code:
- ax1.scatter() draws the polar plot.
- ax2.hist() plots the histogram, both in one figure.
You should see the figure as follows:
- bounds = np.array([[0.0,0.0], [4.1, 6.0]]) specifies the boundaries of the figure to be saved. They represent the bottom-left and top-right corners of the area to be saved, and they are in the figure coordinate system.
- We have specified figsize=(8,6), [[0.0,0.0], [4.1, 6.0]] and it represents the left side of the figure, and [3.9,0.0], [8.0, 6.0]] represents the right half of the figure.
First, let's look at PDF versions of polar and histogram outputs: