ImageGraphic#

ImageGraphic#

Constructor#

ImageGraphic(data[, vmin, vmax, cmap, ...])

Create an Image Graphic

Properties#

ImageGraphic.axes

ImageGraphic.block_events

Used to block events for a graphic and prevent recursion.

ImageGraphic.cmap

colormap name

ImageGraphic.cmap_interpolation

cmap interpolation method

ImageGraphic.data

Get or set the image data

ImageGraphic.deleted

used to emit an event after the graphic is deleted

ImageGraphic.event_handlers

Registered event handlers.

ImageGraphic.interpolation

image data interpolation method

ImageGraphic.name

Graphic name

ImageGraphic.offset

[x, y, z]

ImageGraphic.right_click_menu

ImageGraphic.rotation

Orientation of the graphic as a quaternion

ImageGraphic.supported_events

events supported by this graphic

ImageGraphic.visible

Whether the graphic is visible

ImageGraphic.vmax

upper contrast limit

ImageGraphic.vmin

lower contrast limit

ImageGraphic.world_object

Associated pygfx WorldObject.

Methods#

ImageGraphic.add_axes()

Add axes onto this Graphic

ImageGraphic.add_event_handler(*args)

Register an event handler.

ImageGraphic.add_linear_region_selector([...])

Add a LinearRegionSelector.

ImageGraphic.add_linear_selector([...])

Adds a LinearSelector.

ImageGraphic.add_rectangle_selector([...])

Add a RectangleSelector.

ImageGraphic.clear_event_handlers()

clear all event handlers added to this graphic

ImageGraphic.remove_event_handler(callback, ...)

remove a registered event handler

ImageGraphic.reset_vmin_vmax()

Reset the vmin, vmax by estimating it from the data

ImageGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.

ImageGraphic.share_property(feature)

ImageGraphic.unshare_property(feature)