Matplotlib.pyplot.thetagrids() in Python
Matplotlib is a plotting library of Python programming language and its numerical mathematics module is NumPy. matplotlib.pyplot is a collection of command style functions that make matplotlib work like the MATLAB Tool. Each of the pyplot functions makes certain changes to a figure: e.g., creating a figure, creating a plot area in a figure, plots some lines in a plotting area or decorate the plot with labels, etc.
Note: For more information, refer to Pyplot in Matplotlib
Set the theta locations of the gridlines in the polar plot. If no arguments are passed, it returns a tuple (lines, labels) where lines are an array of radial gridlines (Line2D instances) and labels is an array of tick labels (Text instances):
Syntax: lines, labels = thetagrids(angles, labels=None, fmt=’%d’, frac = 1.5)
set the angles to the place of theta grids (these gridlines are equal along the theta dimension)
if not None, then it is len(angles) or list of strings of the labels to use at each angle. If labels are None, the labels will be fmt%angle.
frac: It is the fraction of the polar axes radius at the place of label (1 is the edge). e.g., 1.25 is outside the axes and 0.75 is inside the axes.
Return Type: Return value is a list of tuples (lines, labels)
Note: lines are Line2D instances, labels are Text instances.