28 from __future__
import absolute_import, division, print_function
32 from .interface
import getDisplay
as _getDisplay, getDefaultBackend, setDefaultBackend, \
33 setDefaultFrame, getDefaultFrame, incrDefaultFrame
39 getDisplay = _getDisplay
40 except Exception
as e:
43 e.args = [
"%s (is display_ds9 setup?)" % e]
55 from lsst.afw.display import BLACK, RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, WHITE
58 return _getDisplay(
None, create=
True).
Buffering()
79 def mtv(data, frame=None, title="", wcs=None, *args, **kwargs):
80 return getDisplay(frame, create=
True).
mtv(data, title, wcs, *args, **kwargs)
85 def dot(symb, c, r, frame=None, size=2, ctype=None, origin=afwImage.PARENT, *args, **kwargs):
86 return getDisplay(frame, create=
True).
dot(symb, c, r, size, ctype, origin, *args, **kwargs)
88 def line(points, frame=None, origin=afwImage.PARENT, symbs=False, ctype=None, size=0.5):
89 return getDisplay(frame, create=
True).
line(points, origin, symbs, ctype, size)
91 def scale(algorithm, min, max=None, frame=None):
94 def pan(colc=None, rowc=None, frame=None, origin=afwImage.PARENT):
97 disp.pan(colc, rowc, origin)
99 def zoom(zoomfac=None, colc=None, rowc=None, frame=None, origin=afwImage.PARENT):
103 disp.pan(colc, rowc, origin)
108 def setCallback(k, func=lsst.afw.display.noop_callback, noRaise=False, frame=None):
def getActiveCallbackKeys