ImvizImageView#

class jdaviz.configs.imviz.plugins.viewers.ImvizImageView(*args, **kwargs)[source]#

Bases: JdavizViewerMixin, BqplotImageView, AstrowidgetsImageViewerMixin

Attributes Summary

default_class

first_loaded_data

Data that is first loaded into the viewer.

tools_nested

top_visible_data_label

Data label of the top visible layer in the viewer.

Methods Summary

blink_once([reversed])

data([cls])

get_alignment_method(data_label)

Find the type of glue linking between the given data label with the reference data in viewer.

get_viewport_region([sky_or_pixel, data_label])

Return a PolygonPixelRegion or PolygonSkyRegion representing the perimeter of the viewer.

on_limits_change(*args)

on_mouse_or_key_event(data)

set_compass(image)

Update the Compass plugin with info from the given image Data object.

set_plot_axes()

Attributes Documentation

default_class = None#
first_loaded_data#

Data that is first loaded into the viewer. This may not be the visible layer. Returns None if no real data is loaded.

tools_nested = [['jdaviz:homezoom', 'jdaviz:prevzoom'], ['jdaviz:boxzoommatch', 'jdaviz:boxzoom'], ['jdaviz:panzoommatch', 'jdaviz:imagepanzoom'], ['bqplot:truecircle', 'bqplot:rectangle', 'bqplot:ellipse', 'bqplot:circannulus'], ['jdaviz:blinkonce', 'jdaviz:contrastbias'], ['jdaviz:viewer_clone', 'jdaviz:sidebar_plot', 'jdaviz:sidebar_export', 'jdaviz:sidebar_compass']]#
top_visible_data_label#

Data label of the top visible layer in the viewer.

Methods Documentation

data(cls=None)[source]#
get_alignment_method(data_label)[source]#

Find the type of glue linking between the given data label with the reference data in viewer.

Parameters:
data_labelstr

Data label to look up.

Returns:
align_by{‘pixels’, ‘wcs’, ‘self’}

One of the link types accepted by the Orientation plugin or 'self' if the data label belongs to the reference data itself.

Raises:
ValueError

Link look-up failed.

get_viewport_region(sky_or_pixel='sky', data_label=None)[source]#

Return a PolygonPixelRegion or PolygonSkyRegion representing the perimeter of the viewer.

If more than one instance of the viewer widget is open, the region will be returned with coordinates specific to the last viewport that was in focus.

Parameters:
sky_or_pixelstr, {‘sky’, ‘pixel’}

Return a PolygonSkyRegion with world coordinates or a PolygonPixelRegion with pixel coordinates. Default is ‘sky’.

data_labelstr, optional

Return the pixel coordinates for the data layer with this label. Only used when sky_or_pixel == ‘pixel’.

Returns:
PolygonPixelRegion or PolygonSkyRegion

Region with vertices representing the corners of the current field of view in the viewport.

on_limits_change(*args)[source]#
on_mouse_or_key_event(data)[source]#
set_compass(image)[source]#

Update the Compass plugin with info from the given image Data object.

set_plot_axes()[source]#