foxes.utils.TabWindroseAxes.set_thetagrids(angles, labels=None, fmt=None, **kwargs)

Set the theta gridlines in a polar plot.

Parameters

anglestuple with floats, degrees

The angles of the theta gridlines.

labelstuple with strings or None

The labels to use at each theta gridline. The .projections.polar.ThetaFormatter will be used if None.

fmtstr or None

Format string used in matplotlib.ticker.FormatStrFormatter. For example ‘%f’. Note that the angle that is used is in radians.

Returns

lineslist of .lines.Line2D

The theta gridlines.

labelslist of .text.Text

The tick labels.

Other Parameters

**kwargs

kwargs are optional .Text properties for the labels.

Warning

This only sets the properties of the current ticks. Ticks are not guaranteed to be persistent. Various operations can create, delete and modify the Tick instances. There is an imminent risk that these settings can get lost if you work on the figure further (including also panning/zooming on a displayed figure).

Use .set_tick_params instead if possible.

See Also

.PolarAxes.set_rgrids .Axis.get_gridlines .Axis.get_ticklabels