The following is the explanation for the preceding code:
- curv2rect_tr = Affine2D().scale(np.pi/180., 1.) + PolarAxes.PolarTransform() defines the transformation between the main and parasite axes:
- PolarAxes.PolarTransform() needs the angle in radians; hence, we add scale(np.pi/180., 1.) to facilitate the transformation between degrees and radians.
- Affine2D is the linear transformation between two axes.
- extreme_finder = angle_helper.ExtremeFinderCycle() computes boundary values for the angle and radius for given X, Y limits, and other parameters set in this function:
- (25, 25) is the number of steps it takes from the minimum and maximum limits set for x and y.
- The number of grid lines (circular for radius, diagonal for ...