StandaloneImageViewer

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

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 Matplotlib axes object for this figure

tools

window_closed()

Methods Summary

closeEvent(self, QCloseEvent)

initialize_toolbar(self)

mdi_wrap(self)

Embed this widget in a GlueMdiSubWindow

set_cmap(self, cmap)

set_image(self[, image, wcs])

Update the image shown in the widget

set_status(self, message)

show(self)

Attributes Documentation

axes

The Matplotlib axes object for this figure

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

Methods Documentation

closeEvent(self, QCloseEvent)[source]
initialize_toolbar(self)[source]
mdi_wrap(self)[source]

Embed this widget in a GlueMdiSubWindow

set_cmap(self, cmap)[source]
set_image(self, image=None, wcs=None, **kwargs)[source]

Update the image shown in the widget

set_status(self, message)[source]
show(self)[source]