doc_content stringlengths 1 386k | doc_id stringlengths 5 188 |
|---|---|
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.PolyCollection.update_scalarmappable |
zorder=0 | matplotlib.collections_api#matplotlib.collections.PolyCollection.zorder |
classmatplotlib.collections.QuadMesh(coordinates, *, antialiased=True, shading='flat', pickradius=0, **kwargs)[source]
Bases: matplotlib.collections.Collection Class for the efficient drawing of a quadrilateral mesh. A quadrilateral mesh is a grid of M by N adjacent qudrilaterals that are defined via a (M+1, N+1) gri... | matplotlib.collections_api#matplotlib.collections.QuadMesh |
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.QuadMesh.add_callback |
autoscale()[source]
Autoscale the scalar limits on the norm instance using the current array | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.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.QuadMesh.changed |
colorbar
The last colorbar associated with this ScalarMappable. May be None. | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.contains |
staticconvert_mesh_to_paths(meshWidth, meshHeight, coordinates)[source]
[Deprecated] Notes Deprecated since version 3.5: | matplotlib.collections_api#matplotlib.collections.QuadMesh.convert_mesh_to_paths |
convert_mesh_to_triangles(meshWidth, meshHeight, coordinates)[source]
[Deprecated] Notes Deprecated since version 3.5: | matplotlib.collections_api#matplotlib.collections.QuadMesh.convert_mesh_to_triangles |
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.QuadMesh.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.QuadMesh.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.QuadMesh.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.QuadMesh.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.QuadMesh.format_cursor_data |
get_agg_filter()[source]
Return filter function to be used for agg filter. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_agg_filter |
get_alpha()[source]
Return the alpha value used for blending - not supported on all backends. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_alpha |
get_animated()[source]
Return whether the artist is animated. | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.get_array |
get_capstyle()[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_capstyle |
get_children()[source]
Return a list of the child Artists of this Artist. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_children |
get_clim()[source]
Return the values (min, max) that are mapped to the colormap limits. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_clim |
get_clip_box()[source]
Return the clipbox. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_clip_box |
get_clip_on()[source]
Return whether the artist uses clipping. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_clip_on |
get_clip_path()[source]
Return the clip path. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_clip_path |
get_cmap()[source]
Return the Colormap instance. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_cmap |
get_coordinates()[source]
Return the vertices of the mesh as an (M+1, N+1, 2) array. M, N are the number of quadrilaterals in the rows / columns of the mesh, corresponding to (M+1, N+1) vertices. The last dimension specifies the components (x, y). | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_coordinates |
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.QuadMesh.get_cursor_data |
get_dashes()[source]
Alias for get_linestyle. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_dashes |
get_datalim(transData)[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_datalim |
get_ec()[source]
Alias for get_edgecolor. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_ec |
get_edgecolor()[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_edgecolor |
get_edgecolors()[source]
Alias for get_edgecolor. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_edgecolors |
get_facecolor()[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_facecolor |
get_facecolors()[source]
Alias for get_facecolor. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_facecolors |
get_fc()[source]
Alias for get_facecolor. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_fc |
get_figure()[source]
Return the Figure instance the artist belongs to. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_figure |
get_fill()[source]
Return whether face is colored. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_fill |
get_gid()[source]
Return the group id. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_gid |
get_hatch()[source]
Return the current hatching pattern. | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.get_in_layout |
get_joinstyle()[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_joinstyle |
get_label()[source]
Return the label used for this artist in the legend. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_label |
get_linestyle()[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_linestyle |
get_linestyles()[source]
Alias for get_linestyle. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_linestyles |
get_linewidth()[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_linewidth |
get_linewidths()[source]
Alias for get_linewidth. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_linewidths |
get_ls()[source]
Alias for get_linestyle. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_ls |
get_lw()[source]
Alias for get_linewidth. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_lw |
get_offset_transform()[source]
Return the Transform instance used by this artist offset. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_offset_transform |
get_offsets()[source]
Return the offsets for the collection. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_offsets |
get_path_effects()[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_path_effects |
get_paths()[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_paths |
get_picker()[source]
Return the picking behavior of the artist. The possible values are described in set_picker. See also
set_picker, pickable, pick | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_picker |
get_pickradius()[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_pickradius |
get_rasterized()[source]
Return whether the artist is to be rasterized. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_rasterized |
get_sketch_params()[source]
Return the sketch parameters for the artist. Returns
tuple or None
A 3-tuple with the following elements:
scale: The amplitude of the wiggle perpendicular to the source line.
length: The length of the wiggle along the line.
randomness: The scale factor by which the length is shrunk... | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_sketch_params |
get_snap()[source]
Return the snap setting. See set_snap for details. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_snap |
get_tightbbox(renderer)[source]
Like Artist.get_window_extent, but includes any clipping. Parameters
rendererRendererBase subclass
renderer that will be used to draw the figures (i.e. fig.canvas.get_renderer()) Returns
Bbox
The enclosing bounding box (in figure pixel coordinates). | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_tightbbox |
get_transform()[source]
Return the Transform instance used by this artist. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_transform |
get_transformed_clip_path_and_affine()[source]
Return the clip path with the non-affine part of its transformation applied, and the remaining affine part of its transformation. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_transformed_clip_path_and_affine |
get_transforms()[source] | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_transforms |
get_url()[source]
Return the url. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_url |
get_urls()[source]
Return a list of URLs, one for each element of the collection. The list contains None for elements without a URL. See Hyperlinks for an example. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_urls |
get_visible()[source]
Return the visibility. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_visible |
get_window_extent(renderer)[source]
Get the artist's bounding box in display space. The bounding box' width and height are nonnegative. Subclasses should override for inclusion in the bounding box "tight" calculation. Default is to return an empty bounding box at 0, 0. Be careful when using this function, the results... | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_window_extent |
get_zorder()[source]
Return the artist's zorder. | matplotlib.collections_api#matplotlib.collections.QuadMesh.get_zorder |
have_units()[source]
Return whether units are set on any axis. | matplotlib.collections_api#matplotlib.collections.QuadMesh.have_units |
is_transform_set()[source]
Return whether the Artist has an explicitly set transform. This is True after set_transform has been called. | matplotlib.collections_api#matplotlib.collections.QuadMesh.is_transform_set |
pchanged()[source]
Call all of the registered callbacks. This function is triggered internally when a property is changed. See also add_callback
remove_callback | matplotlib.collections_api#matplotlib.collections.QuadMesh.pchanged |
pick(mouseevent)[source]
Process a pick event. Each child artist will fire a pick event if mouseevent is over the artist and the artist has picker set. See also
set_picker, get_picker, pickable | matplotlib.collections_api#matplotlib.collections.QuadMesh.pick |
pickable()[source]
Return whether the artist is pickable. See also
set_picker, get_picker, pick | matplotlib.collections_api#matplotlib.collections.QuadMesh.pickable |
properties()[source]
Return a dictionary of all the properties of the artist. | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.remove |
remove_callback(oid)[source]
Remove a callback based on its observer id. See also add_callback | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.set |
set_aa(aa)[source]
Alias for set_antialiased. | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.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.QuadMesh.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.QuadMesh.set_animated |
set_antialiased(aa)[source]
Set the antialiasing state for rendering. Parameters
aabool or list of bools | matplotlib.collections_api#matplotlib.collections.QuadMesh.set_antialiased |
set_antialiaseds(aa)[source]
Alias for set_antialiased. | matplotlib.collections_api#matplotlib.collections.QuadMesh.set_antialiaseds |
set_array(A)[source]
Set the data values. Parameters
A(M, N) array-like or M*N array-like
If the values are provided as a 2D grid, the shape must match the coordinates grid. If the values are 1D, they are reshaped to 2D. M, N follow from the coordinates grid, where the coordinates grid shape is (M, N) for 'gour... | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.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.QuadMesh.set_clim |
set_clip_box(clipbox)[source]
Set the artist's clip Bbox. Parameters
clipboxBbox | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.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.QuadMesh.set_clip_path |
set_cmap(cmap)[source]
Set the colormap for luminance data. Parameters
cmapColormap or str or None | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.set_color |
set_dashes(ls)[source]
Alias for set_linestyle. | matplotlib.collections_api#matplotlib.collections.QuadMesh.set_dashes |
set_ec(c)[source]
Alias for set_edgecolor. | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.set_edgecolor |
set_edgecolors(c)[source]
Alias for set_edgecolor. | matplotlib.collections_api#matplotlib.collections.QuadMesh.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.QuadMesh.set_facecolor |
set_facecolors(c)[source]
Alias for set_facecolor. | matplotlib.collections_api#matplotlib.collections.QuadMesh.set_facecolors |
set_fc(c)[source]
Alias for set_facecolor. | matplotlib.collections_api#matplotlib.collections.QuadMesh.set_fc |
set_figure(fig)[source]
Set the Figure instance the artist belongs to. Parameters
figFigure | matplotlib.collections_api#matplotlib.collections.QuadMesh.set_figure |
set_gid(gid)[source]
Set the (group) id for the artist. Parameters
gidstr | matplotlib.collections_api#matplotlib.collections.QuadMesh.set_gid |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.