matplotlib.artist#

Diagramas de Herança #

Diagrama de herança de matplotlib.axes._axes.Axes, matplotlib.axes._base._AxesBase, matplotlib.axis.Axis, matplotlib.axis.Tick, matplotlib.axis.XAxis, matplotlib.axis.XTick, matplotlib.axis.YAxis, matplotlib .axis.YTick, matplotlib.collections.AsteriskPolygonCollection, matplotlib.collections.BrokenBarHCollection, matplotlib.collections.CircleCollection, matplotlib.collections.Collection, matplotlib.collections.EllipseCollection, matplotlib.collections.EventCollection, matplotlib.collections.LineCollections.EllipseCollection, matplotlib.collections.EventCollection, matplotlib.collections.LineCollections. .PatchCollection, matplotlib.collections.PathCollection, matplotlib.collections.PolyCollection, matplotlib.collections.QuadMesh, matplotlib.collections.RegularPolyCollection, matplotlib.collections.StarPolygonCollection, matplotlib.collections.TriMesh, matplotlib.collections._CollectionWithSizes, matplotlib.contour.ClabelText, matplotlib.figure.Figure, matplotlib.image.AxesImage, matplotlib.image.BboxImage, matplotlib.image.FigureImage, matplotlib.image.NonUniformImage, matplotlib.image.PcolorImage, matplotlib.image._ImageBase, matplotlib.legend.Legend, matplotlib.lines.Line2D, matplotlib.offsetbox.AnchoredOffsetbox, matplotlib.offsetbox.AnchoredText, matplotlib.offsetbox.AnnotationBbox, matplotlib.offsetbox.AuxTransformBox, matplotlib.offsetbox.DrawingArea, matplotlib.offsetbox.HPacker, matplotlib.offsetbox.Offset, matplotlib. offsetbox.OffsetImage, matplotlib.offsetbox.PackerBase, matplotlib.offsetbox.PaddedBox, matplotlib.offsetbox.TextArea, matplotlib.offsetbox.VPacker, matplotlib.patches.Arc, matplotlib.patches.Arrow, matplotlib.patches.Circle, matplotlib.patches. CirclePolygon, matplotlib.patches.ConnectionPatch, matplotlib.patches.Ellipse, matplotlib.patches.FancyArrow, matplotlib.patches.FancyArrowPatch, matplotlib.patches.FancyBboxPatch, matplotlib.patches.Patch, matplotlib.patches.PathPatch, matplotlib.patches.StepPatch, matplotlib.patches.Polygon, matplotlib.patches.Rectangle, matplotlib.patches. RegularPolygon, matplotlib.patches.Shadow, matplotlib.patches.Wedge, matplotlib.projections.geo.AitoffAxes, matplotlib.projections.geo.GeoAxes, matplotlib.projections.geo.HammerAxes, matplotlib.projections.geo.LambertAxes, matplotlib.projections. geo.MollweideAxes, matplotlib.projections.polar.PolarAxes, matplotlib.quiver.Barbs, matplotlib.quiver.Quiver, matplotlib.quiver.QuiverKey, matplotlib.spines.Spine, matplotlib.table.Cell, matplotlib.table.CustomCell, matplotlib. table.Table, matplotlib.text.Annotation, matplotlib.text.Textpatches.FancyBboxPatch, matplotlib.patches.Patch, matplotlib.patches.PathPatch, matplotlib.patches.StepPatch, matplotlib.patches.Polygon, matplotlib.patches.Rectangle, matplotlib.patches.RegularPolygon, matplotlib.patches.Shadow, matplotlib.patches. Wedge, matplotlib.projections.geo.AitoffAxes, matplotlib.projections.geo.GeoAxes, matplotlib.projections.geo.HammerAxes, matplotlib.projections.geo.LambertAxes, matplotlib.projections.geo.MollweideAxes, matplotlib.projections.polar.PolarAxes, matplotlib.quiver.Barbs, matplotlib.quiver.Quiver, matplotlib.quiver.QuiverKey, matplotlib.spines.Spine, matplotlib.table.Cell, matplotlib.table.CustomCell, matplotlib.table.Table, matplotlib.text.Annotation, matplotlib. texto.textopatches.FancyBboxPatch, matplotlib.patches.Patch, matplotlib.patches.PathPatch, matplotlib.patches.StepPatch, matplotlib.patches.Polygon, matplotlib.patches.Rectangle, matplotlib.patches.RegularPolygon, matplotlib.patches.Shadow, matplotlib.patches. Wedge, matplotlib.projections.geo.AitoffAxes, matplotlib.projections.geo.GeoAxes, matplotlib.projections.geo.HammerAxes, matplotlib.projections.geo.LambertAxes, matplotlib.projections.geo.MollweideAxes, matplotlib.projections.polar.PolarAxes, matplotlib.quiver.Barbs, matplotlib.quiver.Quiver, matplotlib.quiver.QuiverKey, matplotlib.spines.Spine, matplotlib.table.Cell, matplotlib.table.CustomCell, matplotlib.table.Table, matplotlib.text.Annotation, matplotlib. texto.textomatplotlib.patches.Rectangle, matplotlib.patches.RegularPolygon, matplotlib.patches.Shadow, matplotlib.patches.Wedge, matplotlib.projections.geo.AitoffAxes, matplotlib.projections.geo.GeoAxes, matplotlib.projections.geo.HammerAxes, matplotlib. projeções.geo.LambertAxes, matplotlib.projections.geo.MollweideAxes, matplotlib.projections.polar.PolarAxes, matplotlib.quiver.Barbs, matplotlib.quiver.Quiver, matplotlib.quiver.QuiverKey, matplotlib.spines.Spine, matplotlib.table. Célula, matplotlib.table.CustomCell, matplotlib.table.Table, matplotlib.text.Annotation, matplotlib.text.Textmatplotlib.patches.Rectangle, matplotlib.patches.RegularPolygon, matplotlib.patches.Shadow, matplotlib.patches.Wedge, matplotlib.projections.geo.AitoffAxes, matplotlib.projections.geo.GeoAxes, matplotlib.projections.geo.HammerAxes, matplotlib. projeções.geo.LambertAxes, matplotlib.projections.geo.MollweideAxes, matplotlib.projections.polar.PolarAxes, matplotlib.quiver.Barbs, matplotlib.quiver.Quiver, matplotlib.quiver.QuiverKey, matplotlib.spines.Spine, matplotlib.table. Célula, matplotlib.table.CustomCell, matplotlib.table.Table, matplotlib.text.Annotation, matplotlib.text.Textmatplotlib.projections.geo.MollweideAxes, matplotlib.projections.polar.PolarAxes, matplotlib.quiver.Barbs, matplotlib.quiver.Quiver, matplotlib.quiver.QuiverKey, matplotlib.spines.Spine, matplotlib.table.Cell, matplotlib.table. CustomCell, matplotlib.table.Table, matplotlib.text.Annotation, matplotlib.text.Textmatplotlib.projections.geo.MollweideAxes, matplotlib.projections.polar.PolarAxes, matplotlib.quiver.Barbs, matplotlib.quiver.Quiver, matplotlib.quiver.QuiverKey, matplotlib.spines.Spine, matplotlib.table.Cell, matplotlib.table. CustomCell, matplotlib.table.Table, matplotlib.text.Annotation, matplotlib.text.Text

Artistclasse #

classe matplotlib.artist. Artista [fonte] #

Classe base abstrata para objetos que são renderizados em um FigureCanvas.

Normalmente, todos os elementos visíveis em uma figura são subclasses de Artist.

Interativo #

Artist.add_callback

Adicione uma função de retorno de chamada que será chamada sempre que uma das Artistpropriedades de for alterada.

Artist.remove_callback

Remova um retorno de chamada com base em seu ID de observador.

Artist.pchanged

Chame todos os retornos de chamada registrados.

Artist.get_cursor_data

Retorna os dados do cursor para um determinado evento.

Artist.format_cursor_data

Retorna uma representação de string de dados .

Artist.set_mouseover

Defina se este artista é consultado para obter informações de contexto personalizado quando o cursor do mouse passa sobre ele.

Artist.get_mouseover

Retorna se este artista é consultado para obter informações de contexto personalizado quando o cursor do mouse passa sobre ele.

Artist.mouseover

Retorna se este artista é consultado para obter informações de contexto personalizado quando o cursor do mouse passa sobre ele.

Artist.contains

Teste se o artista contém o evento do mouse.

Artist.pick

Processe um evento de seleção.

Artist.pickable

Retorna se o artista é selecionável.

Artist.set_picker

Defina o comportamento de seleção do artista.

Artist.get_picker

Retorne o comportamento de seleção do artista.

Clipe #

Artist.set_clip_on

Defina se o artista usa recorte.

Artist.get_clip_on

Retorna se o artista usa recorte.

Artist.set_clip_box

Defina o clipe do artista Bbox.

Artist.get_clip_box

Devolva a caixa de transferência.

Artist.set_clip_path

Defina o caminho do clipe do artista.

Artist.get_clip_path

Retorne o caminho do clipe.

Propriedades em massa #

Artist.update

Atualize as propriedades deste artista nos dict props .

Artist.update_from

Copie as propriedades de outro para si mesmo .

Artist.properties

Retorna um dicionário de todas as propriedades do artista.

Artist.set

Defina várias propriedades de uma só vez.

Desenho #

Artist.draw

Desenhe o Artista (e seus filhos) usando o renderizador fornecido.

Artist.set_animated

Defina se o artista deve ser usado em uma animação.

Artist.get_animated

Retorna se o artista é animado.

Artist.set_alpha

Defina o valor alfa usado para mesclagem - não suportado em todos os back-ends.

Artist.get_alpha

Retorne o valor alfa usado para mesclagem - não suportado em todos os back-ends.

Artist.set_snap

Defina o comportamento de ajuste.

Artist.get_snap

Retorne a configuração de encaixe.

Artist.set_visible

Defina a visibilidade do artista.

Artist.get_visible

Devolva a visibilidade.

Artist.zorder

Artist.set_zorder

Defina o zorder para o artista.

Artist.get_zorder

Devolva o zorder do artista.

Artist.set_agg_filter

Defina o filtro agg.

Artist.set_sketch_params

Defina os parâmetros do esboço.

Artist.get_sketch_params

Retorne os parâmetros do esboço para o artista.

Artist.set_rasterized

Força desenho rasterizado (bitmap) para saída de gráficos vetoriais.

Artist.get_rasterized

Retorna se o artista deve ser rasterizado.

Artist.set_path_effects

Defina os efeitos do caminho.

Artist.get_path_effects

Artist.get_agg_filter

Função de filtro de retorno a ser usada para filtro agg.

Artist.get_window_extent

Obtenha a caixa delimitadora do artista no espaço de exibição.

Artist.get_tightbbox

Como Artist.get_window_extent, mas inclui qualquer recorte.

Artist.get_transformed_clip_path_and_affine

Retorne o caminho do clipe com a parte não afim de sua transformação aplicada e a parte afim restante de sua transformação.

Figura e Eixos #

Artist.remove

Remova o artista da figura, se possível.

Artist.axes

A Axesinstância em que o artista reside ou None .

Artist.set_figure

Defina a Figureinstância à qual o artista pertence.

Artist.get_figure

Retorna a Figureinstância à qual o artista pertence.

Crianças #

Artist.get_children

Retorna uma lista dos filhos Artistdeste Artist.

Artist.findobj

Encontre objetos artísticos.

Transformar #

Artist.set_transform

Defina a transformação do artista.

Artist.get_transform

Retorna a Transforminstância usada por este artista.

Artist.is_transform_set

Retorna se o Artista tem uma transformação definida explicitamente.

Unidades #

Artist.convert_xunits

Converta x usando o tipo de unidade do eixo x.

Artist.convert_yunits

Converta y usando o tipo de unidade do eixo ya.

Artist.have_units

Retorna se as unidades são definidas em qualquer eixo.

Metadados #

Artist.set_gid

Defina o id (grupo) para o artista.

Artist.get_gid

Retorna o ID do grupo.

Artist.set_label

Defina um rótulo que será exibido na legenda.

Artist.get_label

Retorne o rótulo usado para este artista na legenda.

Artist.set_url

Defina o URL para o artista.

Artist.get_url

Retorne a url.

Diversos #

Artist.sticky_edges

xe ylistas de limites aderentes para dimensionamento automático.

Artist.set_in_layout

Defina se o artista deve ser incluído nos cálculos de layout, por exemplo

Artist.get_in_layout

Retorna o sinalizador booleano, Truese o artista estiver incluído nos cálculos de layout.

Artist.stale

Se o artista está 'obsoleto' e precisa ser redesenhado para que a saída corresponda ao estado interno do artista.

Funções #

allow_rasterization

Decorador para o método Artist.draw.

get

Retorne o valor da propriedade de an Artistou imprima todos eles.

getp

Retorne o valor da propriedade de an Artistou imprima todos eles.

setp

Defina uma ou mais propriedades em um Artistou liste os valores permitidos.

kwdoc

Inspecione uma Artistclasse (usando ArtistInspector) e retorne informações sobre suas propriedades configuráveis ​​e seus valores atuais.

ArtistInspector

Uma classe auxiliar para inspecionar Artiste retornar informações sobre suas propriedades configuráveis ​​e seus valores atuais.