doc_content
stringlengths
1
386k
doc_id
stringlengths
5
188
pickable()[source] Return whether the artist is pickable. See also set_picker, get_picker, pick
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.pickable
properties()[source] Return a dictionary of all the properties of the artist.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.properties
remove()[source] Remove the artist from the figure if possible. The effect will not be visible until the figure is redrawn, e.g., with FigureCanvasBase.draw_idle. Call relim to update the axes limits if desired. Note: relim will not see collections even if the collection was added to the axes with autolim = True. Not...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.remove
remove_callback(oid)[source] Remove a callback based on its observer id. See also add_callback
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.remove_callback
set(*, agg_filter=<UNSET>, alpha=<UNSET>, animated=<UNSET>, antialiased=<UNSET>, array=<UNSET>, capstyle=<UNSET>, clim=<UNSET>, clip_box=<UNSET>, clip_on=<UNSET>, clip_path=<UNSET>, cmap=<UNSET>, color=<UNSET>, edgecolor=<UNSET>, facecolor=<UNSET>, gid=<UNSET>, hatch=<UNSET>, in_layout=<UNSET>, joinstyle=<UNSET>, label...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set
set_aa(aa)[source] Alias for set_antialiased.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_aa
set_agg_filter(filter_func)[source] Set the agg filter. Parameters filter_funccallable A filter function, which takes a (m, n, 3) float array and a dpi value, and returns a (m, n, 3) array.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_agg_filter
set_alpha(alpha)[source] Set the alpha value used for blending - not supported on all backends. Parameters alphaarray-like or scalar or None All values must be within the 0-1 range, inclusive. Masked values and nans are not supported.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_alpha
set_animated(b)[source] Set whether the artist is intended to be used in an animation. If True, the artist is excluded from regular drawing of the figure. You have to call Figure.draw_artist / Axes.draw_artist explicitly on the artist. This appoach is used to speed up animations using blitting. See also matplotlib.an...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_animated
set_antialiased(aa)[source] Set the antialiasing state for rendering. Parameters aabool or list of bools
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_antialiased
set_antialiaseds(aa)[source] Alias for set_antialiased.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_antialiaseds
set_array(A)[source] Set the value array from array-like A. Parameters Aarray-like or None The values that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the value array A.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_array
set_capstyle(cs)[source] Set the CapStyle for the collection (for all its elements). Parameters csCapStyle or {'butt', 'projecting', 'round'}
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_capstyle
set_clim(vmin=None, vmax=None)[source] Set the norm limits for image scaling. Parameters vmin, vmaxfloat The limits. The limits may also be passed as a tuple (vmin, vmax) as a single positional argument.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_clim
set_clip_box(clipbox)[source] Set the artist's clip Bbox. Parameters clipboxBbox
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_clip_box
set_clip_on(b)[source] Set whether the artist uses clipping. When False artists will be visible outside of the axes which can lead to unexpected results. Parameters bbool
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_clip_on
set_clip_path(path, transform=None)[source] Set the artist's clip path. Parameters pathPatch or Path or TransformedPath or None The clip path. If given a Path, transform must be provided as well. If None, a previously set clip path is removed. transformTransform, optional Only used if path is a Path, in whi...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_clip_path
set_cmap(cmap)[source] Set the colormap for luminance data. Parameters cmapColormap or str or None
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_cmap
set_color(c)[source] Set both the edgecolor and the facecolor. Parameters ccolor or list of rgba tuples See also Collection.set_facecolor, Collection.set_edgecolor For setting the edge or face color individually.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_color
set_dashes(ls)[source] Alias for set_linestyle.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_dashes
set_ec(c)[source] Alias for set_edgecolor.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_ec
set_edgecolor(c)[source] Set the edgecolor(s) of the collection. Parameters ccolor or list of colors or 'face' The collection edgecolor(s). If a sequence, the patches cycle through it. If 'face', match the facecolor.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_edgecolor
set_edgecolors(c)[source] Alias for set_edgecolor.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_edgecolors
set_facecolor(c)[source] Set the facecolor(s) of the collection. c can be a color (all patches have same color), or a sequence of colors; if it is a sequence the patches will cycle through the sequence. If c is 'none', the patch will not be filled. Parameters ccolor or list of colors
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_facecolor
set_facecolors(c)[source] Alias for set_facecolor.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_facecolors
set_fc(c)[source] Alias for set_facecolor.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_fc
set_figure(fig)[source] Set the Figure instance the artist belongs to. Parameters figFigure
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_figure
set_gid(gid)[source] Set the (group) id for the artist. Parameters gidstr
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_gid
set_hatch(hatch)[source] Set the hatching pattern hatch can be one of: / - diagonal hatching \ - back diagonal | - vertical - - horizontal + - crossed x - crossed diagonal o - small circle O - large circle . - dots * - stars Letters can be combined, in which case all the specified hatchings are d...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_hatch
set_in_layout(in_layout)[source] Set if artist is to be included in layout calculations, E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight'). Parameters in_layoutbool
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_in_layout
set_joinstyle(js)[source] Set the JoinStyle for the collection (for all its elements). Parameters jsJoinStyle or {'miter', 'round', 'bevel'}
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_joinstyle
set_label(s)[source] Set a label that will be displayed in the legend. Parameters sobject s will be converted to a string by calling str.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_label
set_linestyle(ls)[source] Set the linestyle(s) for the collection. linestyle description '-' or 'solid' solid line '--' or 'dashed' dashed line '-.' or 'dashdot' dash-dotted line ':' or 'dotted' dotted line Alternatively a dash tuple of the following form can be provided: (offset, onoffseq), where onof...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_linestyle
set_linestyles(ls)[source] Alias for set_linestyle.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_linestyles
set_linewidth(lw)[source] Set the linewidth(s) for the collection. lw can be a scalar or a sequence; if it is a sequence the patches will cycle through the sequence Parameters lwfloat or list of floats
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_linewidth
set_linewidths(lw)[source] Alias for set_linewidth.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_linewidths
set_ls(ls)[source] Alias for set_linestyle.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_ls
set_lw(lw)[source] Alias for set_linewidth.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_lw
set_norm(norm)[source] Set the normalization instance. Parameters normNormalize or None Notes If there are any colorbars using the mappable for this norm, setting the norm of the mappable will reset the norm, locator, and formatters on the colorbar to default.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_norm
set_offset_transform(transOffset)[source] Set the artist offset transform. Parameters transOffsetTransform
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_offset_transform
set_offsets(offsets)[source] Set the offsets for the collection. Parameters offsets(N, 2) or (2,) array-like
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_offsets
set_path_effects(path_effects)[source] Set the path effects. Parameters path_effectsAbstractPathEffect
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_path_effects
set_paths()[source]
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_paths
set_picker(picker)[source] Define the picking behavior of the artist. Parameters pickerNone or bool or float or callable This can be one of the following: None: Picking is disabled for this artist (default). A boolean: If True then picking will be enabled and the artist will fire a pick event if the mouse eve...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_picker
set_pickradius(pr)[source] Set the pick radius used for containment tests. Parameters prfloat Pick radius, in points.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_pickradius
set_rasterized(rasterized)[source] Force rasterized (bitmap) drawing for vector graphics output. Rasterized drawing is not supported by all artists. If you try to enable this on an artist that does not support it, the command has no effect and a warning will be issued. This setting is ignored for pixel-based output. ...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_rasterized
set_sizes(sizes, dpi=72.0)[source] Set the sizes of each member of the collection. Parameters sizesndarray or None The size to set for each element of the collection. The value is the 'area' of the element. dpifloat, default: 72 The dpi of the canvas.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_sizes
set_sketch_params(scale=None, length=None, randomness=None)[source] Set the sketch parameters. Parameters scalefloat, optional The amplitude of the wiggle perpendicular to the source line, in pixels. If scale is None, or not provided, no sketch filter will be provided. lengthfloat, optional The length of th...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_sketch_params
set_snap(snap)[source] Set the snapping behavior. Snapping aligns positions with the pixel grid, which results in clearer images. For example, if a black line of 1px width was defined at a position in between two pixels, the resulting image would contain the interpolated value of that line in the pixel grid, which wo...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_snap
set_transform(t)[source] Set the artist transform. Parameters tTransform
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_transform
set_url(url)[source] Set the url for the artist. Parameters urlstr
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_url
set_urls(urls)[source] Parameters urlslist of str or None Notes URLs are currently only implemented by the SVG backend. They are ignored by all other backends.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_urls
set_visible(b)[source] Set the artist's visibility. Parameters bbool
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_visible
set_zorder(level)[source] Set the zorder for the artist. Artists with lower zorder values are drawn first. Parameters levelfloat
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.set_zorder
to_rgba(x, alpha=None, bytes=False, norm=True)[source] Return a normalized rgba array corresponding to x. In the normal case, x is a 1D or 2D sequence of scalars, and the corresponding ndarray of rgba values will be returned, based on the norm and colormap set for this ScalarMappable. There is one special case, for h...
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.to_rgba
update(props)[source] Update this artist's properties from the dict props. Parameters propsdict
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.update
update_from(other)[source] Copy properties from other to self.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.update_from
update_scalarmappable()[source] Update colors from the scalar mappable array, if any. Assign colors to edges and faces based on the array and/or colors that were directly set, as appropriate.
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.update_scalarmappable
zorder=0
matplotlib.collections_api#matplotlib.collections.RegularPolyCollection.zorder
classmatplotlib.collections.StarPolygonCollection(numsides, rotation=0, sizes=(1,), **kwargs)[source] Bases: matplotlib.collections.RegularPolyCollection Draw a collection of regular stars with numsides points. Parameters numsidesint The number of sides of the polygon. rotationfloat The rotation of the poly...
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection
add_callback(func)[source] Add a callback function that will be called whenever one of the Artist's properties changes. Parameters funccallable The callback function. It must have the signature: def func(artist: Artist) -> Any where artist is the calling Artist. Return values may exist but are ignored. Retu...
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.add_callback
autoscale()[source] Autoscale the scalar limits on the norm instance using the current array
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.autoscale
autoscale_None()[source] Autoscale the scalar limits on the norm instance using the current array, changing only limits that are None
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.autoscale_None
changed()[source] Call this whenever the mappable is changed to notify all the callbackSM listeners to the 'changed' signal.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.changed
colorbar The last colorbar associated with this ScalarMappable. May be None.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.colorbar
contains(mouseevent)[source] Test whether the mouse event occurred in the collection. Returns bool, dict(ind=itemlist), where every item in itemlist contains the event.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.contains
convert_xunits(x)[source] Convert x using the unit type of the xaxis. If the artist is not in contained in an Axes or if the xaxis does not have units, x itself is returned.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.convert_xunits
convert_yunits(y)[source] Convert y using the unit type of the yaxis. If the artist is not in contained in an Axes or if the yaxis does not have units, y itself is returned.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.convert_yunits
draw(renderer)[source] Draw the Artist (and its children) using the given renderer. This has no effect if the artist is not visible (Artist.get_visible returns False). Parameters rendererRendererBase subclass. Notes This method is overridden in the Artist subclasses.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.draw
findobj(match=None, include_self=True)[source] Find artist objects. Recursively find all Artist instances contained in the artist. Parameters match A filter criterion for the matches. This can be None: Return all objects contained in artist. A function with signature def match(artist: Artist) -> bool. The resul...
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.findobj
format_cursor_data(data)[source] Return a string representation of data. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. The default implementation converts ints and floats and arrays of ints and floats into a comma...
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.format_cursor_data
get_agg_filter()[source] Return filter function to be used for agg filter.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_agg_filter
get_alpha()[source] Return the alpha value used for blending - not supported on all backends.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_alpha
get_animated()[source] Return whether the artist is animated.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_animated
get_array()[source] Return the array of values, that are mapped to colors. The base class ScalarMappable does not make any assumptions on the dimensionality and shape of the array.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_array
get_capstyle()[source]
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_capstyle
get_children()[source] Return a list of the child Artists of this Artist.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_children
get_clim()[source] Return the values (min, max) that are mapped to the colormap limits.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_clim
get_clip_box()[source] Return the clipbox.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_clip_box
get_clip_on()[source] Return whether the artist uses clipping.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_clip_on
get_clip_path()[source] Return the clip path.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_clip_path
get_cmap()[source] Return the Colormap instance.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_cmap
get_cursor_data(event)[source] Return the cursor data for a given event. Note This method is intended to be overridden by artist subclasses. As an end-user of Matplotlib you will most likely not call this method yourself. Cursor data can be used by Artists to provide additional context information for a given event...
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_cursor_data
get_dashes()[source] Alias for get_linestyle.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_dashes
get_datalim(transData)[source]
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_datalim
get_ec()[source] Alias for get_edgecolor.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_ec
get_edgecolor()[source]
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_edgecolor
get_edgecolors()[source] Alias for get_edgecolor.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_edgecolors
get_facecolor()[source]
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_facecolor
get_facecolors()[source] Alias for get_facecolor.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_facecolors
get_fc()[source] Alias for get_facecolor.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_fc
get_figure()[source] Return the Figure instance the artist belongs to.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_figure
get_fill()[source] Return whether face is colored.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_fill
get_gid()[source] Return the group id.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_gid
get_hatch()[source] Return the current hatching pattern.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_hatch
get_in_layout()[source] Return boolean flag, True if artist is included in layout calculations. E.g. Constrained Layout Guide, Figure.tight_layout(), and fig.savefig(fname, bbox_inches='tight').
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_in_layout
get_joinstyle()[source]
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_joinstyle
get_label()[source] Return the label used for this artist in the legend.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_label
get_linestyle()[source]
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_linestyle
get_linestyles()[source] Alias for get_linestyle.
matplotlib.collections_api#matplotlib.collections.StarPolygonCollection.get_linestyles