StandaloneImageViewer

class glue.viewers.image.qt.StandaloneImageViewer(image=None, wcs=None, parent=None, **kwargs)

Bases: PyQt5.QtWidgets.QMainWindow

A simplified image viewer, without any brushing or linking, but with the ability to adjust contrast and resample.

Parameters:
  • image – Image to display (2D numpy array)
  • parent – Parent widget (optional)
  • kwargs – Extra keywords to pass to imshow

Attributes Summary

axes The Matplolib axes object for this figure
tools
window_closed

Methods Summary

closeEvent(self, QCloseEvent)
initialize_toolbar()
mdi_wrap() Embed this widget in a GlueMdiSubWindow
set_cmap(cmap)
set_image([image, wcs]) Update the image shown in the widget
set_status(message)
show(self)

Attributes Documentation

axes

The Matplolib axes object for this figure

tools = ['image:contrast', 'image:colormap']
window_closed

Methods Documentation

closeEvent(self, QCloseEvent)
initialize_toolbar()
mdi_wrap()

Embed this widget in a GlueMdiSubWindow

set_cmap(cmap)
set_image(image=None, wcs=None, **kwargs)

Update the image shown in the widget

set_status(message)
show(self)