StandaloneImageWidget

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

Bases: PyQt4.QtGui.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
window_closed

Methods Summary

closeEvent(event)
make_toolbar() Setup the toolbar
mdi_wrap() Embed this widget in a GlueMdiSubWindow
set_image([image, wcs]) Update the image shown in the widget
show()

Attributes Documentation

axes

The Matplolib axes object for this figure

window_closed

Methods Documentation

closeEvent(event)[source]
make_toolbar()[source]

Setup the toolbar

mdi_wrap()[source]

Embed this widget in a GlueMdiSubWindow

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

Update the image shown in the widget

show()[source]