saltgui

Module containing generic graphical user interface widgets.

class saltgui.ImageDisplay

Bases: saltgui.MplCanvas

Class for displaying FITS images using matplotlib imshow() embedded in a Qt 4 GUI. With extra methods for overplotting patches.

addCircle(label, x, y, r, color='y', lw=1)

Add circle patch at postion (x,*y*) with radius r using a line with color color and thickness lw.

addPatch(label, patch)

Add a matplotlib patch instance with a given label.

addRectangle(label, x1, y1, x2, y2, color='y', lw=1)

Add rectangle patch from (x1,*y1*) to (x2,*y2*) using a line with color color and thickness lw.

addSquare(label, x, y, r, color='y', lw=1)

Add square patch at postion (x,*y*) with radius r using a line with color color and thickness lw.

drawImage()

Draw image to canvas.

loadImage(image)

Load image array.

onButtonPress(event)

Emit signal on selecting valid image position.

redraw_canvas(keepzoom=False)
removePatch(label)

Remove patch instance referenced by label from figure.

reset()
setColormap(cmap_name)

Set colormap based on name.

setScale()
class saltgui.MplCanvas

Bases: matplotlib.backends.backend_qt4agg.FigureCanvasQTAgg

Base class for embedding a matplotlib canvas in a PyQt4 GUI.

connectMatplotlibKeyEvents()

Bind events to event handlers.

connectMatplotlibMouseEvents()

Bind events to event handlers.

connectMatplotlibMouseMotion()
disconnectMatplotlibKeyEvents()

Unbind events.

disconnectMatplotlibMouseEvents()

Unbind events.

onButtonPress(event)

Overload this function to implement mousebutton press events.

onButtonRelease(event)

Overload this function to implement mousebutton release events.

onKeyPress(event)

Overload this function to implement mousebutton press events.

onKeyRelease(event)

Overload this function to implement mousebutton release events.

set_focus(event)

Previous topic

saltfit

Next topic

saltimagetools

This Page