plotly.graph_objects.Image¶
-
class
plotly.graph_objects.Image(arg=None, colormodel=None, customdata=None, dx=None, dy=None, hoverinfo=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertext=None, ids=None, legend=None, legendgrouptitle=None, legendrank=None, legendwidth=None, meta=None, name=None, opacity=None, source=None, text=None, uid=None, uirevision=None, visible=None, x0=None, xaxis=None, y0=None, yaxis=None, z=None, zmax=None, zmin=None, zorder=None, zsmooth=None, **kwargs)¶ -
__init__(arg=None, colormodel=None, customdata=None, dx=None, dy=None, hoverinfo=None, hoverlabel=None, hovertemplate=None, hovertemplatefallback=None, hovertext=None, ids=None, legend=None, legendgrouptitle=None, legendrank=None, legendwidth=None, meta=None, name=None, opacity=None, source=None, text=None, uid=None, uirevision=None, visible=None, x0=None, xaxis=None, y0=None, yaxis=None, z=None, zmax=None, zmin=None, zorder=None, zsmooth=None, **kwargs)¶ Construct a new Image object
Display an image, i.e. data on a 2D regular raster. By default, when an image is displayed in a subplot, its y axis will be reversed (ie.
autorange: 'reversed'), constrained to the domain (ie.constrain: 'domain') and it will have the same scale as its x axis (ie.scaleanchor: 'x,) in order for pixels to be rendered as squares.- Parameters
arg – dict of properties compatible with this constructor or an instance of
plotly.graph_objects.Imagecolormodel – Color model used to map the numerical color components described in
zinto colors. Ifsourceis specified, this attribute will be set torgba256otherwise it defaults torgb.customdata – Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, “scatter” traces also appends customdata items in the markers DOM elements
dx – Set the pixel’s horizontal size.
dy – Set the pixel’s vertical size
hoverinfo – Determines what trace information appears on hover. If
noneorskipare set, no information is displayed upon hovering. But, if
-
