matplotlib.pyplot.thetagrids #

matplotlib.pyplot. thetagrids ( ángulos = Ninguno , etiquetas = Ninguno , fmt = Ninguno , ** kwargs ) [fuente] #

Obtenga o establezca las líneas de cuadrícula theta en el gráfico polar actual.

Firmas de llamada:

lines, labels = thetagrids()
lines, labels = thetagrids(angles, labels=None, fmt=None, **kwargs)

Cuando se llama sin argumentos, thetagridssimplemente devuelve la tupla ( líneas , etiquetas ). Cuando se llama con argumentos, las etiquetas aparecerán en los ángulos especificados.

Parámetros :
tupla de ángulos con flotantes, grados

Los ángulos de las líneas de cuadrícula theta.

etiqueta tupla con cadenas o Ninguno

Las etiquetas que se utilizarán en cada línea de cuadrícula radial. se usará projections.polar.ThetaFormattersi Ninguno.

fmt str o Ninguno

Cadena de formato utilizada en matplotlib.ticker.FormatStrFormatter. Por ejemplo, '%f'. Tenga en cuenta que se utilizará el ángulo en radianes.

Devoluciones :
lista de líneas delines.Line2D

Las líneas de cuadrícula theta.

lista de etiquetas detext.Text

Las etiquetas de garrapatas.

Otros parámetros :
**kwargs

kwargs son Textpropiedades opcionales para las etiquetas.

Ejemplos

# set the locations of the angular gridlines
lines, labels = thetagrids(range(45, 360, 90))

# set the locations and labels of the angular gridlines
lines, labels = thetagrids(range(45, 360, 90), ('NE', 'NW', 'SW', 'SE'))