plopp.backends.matplotlib.image.Image#
- class plopp.backends.matplotlib.image.Image(canvas, data, shading='auto', rasterized=True, **kwargs)[source]#
Artist to represent two-dimensional data.
- Parameters:
canvas (
Canvas
) – The canvas that will display the line.data (
DataArray
) – The initial data to create the line from.shading (
str
, default:'auto'
) – The shading to use for thepcolormesh
.rasterized (
bool
, default:True
) – Rasterize the mesh/image ifTrue
.**kwargs – Additional arguments are forwarded to Matplotlib’s
pcolormesh
.
Methods
__init__
(canvas, data[, shading, rasterized])bbox
(xscale, yscale)The bounding box of the image.
format_coord
(xslice, yslice)Format the coordinates of the mouse pointer to show the value of the data at that point.
set_colors
(rgba)Set the mesh's rgba colors:
update
(new_values)Update image array with new values.
Attributes
data
Get the Mesh's data in a form that may have been tweaked, compared to the original data, in the case of a two-dimensional coordinate.