matplotlib.pyplot.thetagrids #

matplotlib.pyplot. thetagrids ( ângulos = Nenhum , rótulos = Nenhum , fmt = Nenhum , ** kwargs ) [fonte] #

Obtenha ou defina as linhas de grade theta no gráfico polar atual.

Assinaturas de chamada:

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

Quando chamado sem argumentos, thetagridssimplesmente retorna a tupla ( lines , labels ). Quando chamado com argumentos, os rótulos aparecerão nos ângulos especificados.

Parâmetros :
tupla de ângulos com flutuadores, graus

Os ângulos das linhas de grade theta.

rótulos tupla com strings ou Nenhum

Os rótulos a serem usados ​​em cada linha de grade radial. O projections.polar.ThetaFormatterserá usado se Nenhum.

fmt str ou Nenhum

String de formato usada em matplotlib.ticker.FormatStrFormatter. Por exemplo '%f'. Observe que o ângulo em radianos será usado.

Devoluções :
lista de linhas delines.Line2D

As linhas de grade teta.

lista de rótulos detext.Text

Os rótulos de escala.

Outros Parâmetros :
** kwargs

kwargs são propriedades opcionais Textpara os rótulos.

Exemplos

# 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'))