28 from __future__
import absolute_import, division, print_function
32 from .interface
import getDisplay
as _getDisplay, setDefaultBackend
34 from .interface
import BLACK, RED, GREEN, BLUE, CYAN, MAGENTA, YELLOW, WHITE
40 getDisplay = _getDisplay
41 except Exception
as e:
55 self.
exception = type(exception)(
"%s (is display_ds9 setup?)" % exception)
72 return _getDisplay(
None, create=
True).
Buffering()
99 def mtv(data, frame=None, title="", wcs=None, *args, **kwargs):
100 return getDisplay(frame, create=
True).
mtv(data, title, wcs, *args, **kwargs)
107 def dot(symb, c, r, frame=None, size=2, ctype=None, origin=afwImage.PARENT, *args, **kwargs):
108 return getDisplay(frame, create=
True).
dot(symb, c, r, size, ctype, origin, *args, **kwargs)
111 def line(points, frame=None, origin=afwImage.PARENT, symbs=False, ctype=None, size=0.5):
112 return getDisplay(frame, create=
True).
line(points, origin, symbs, ctype, size)
115 def scale(algorithm, min, max=None, frame=None):
119 def pan(colc=None, rowc=None, frame=None, origin=afwImage.PARENT):
122 disp.pan(colc, rowc, origin)
125 def zoom(zoomfac=None, colc=None, rowc=None, frame=None, origin=afwImage.PARENT):
129 disp.pan(colc, rowc, origin)
136 def setCallback(k, func=lsst.afw.display.noop_callback, noRaise=False, frame=None):
def __init__(self, exception)
def getActiveCallbackKeys(onlyActive=True, frame=None)
def scale(algorithm, min, max=None, frame=None)
def setMaskTransparency(name, frame=None)
def __call__(self, args, kwargs)
def dot(symb, c, r, frame=None, size=2, ctype=None, origin=afwImage.PARENT, args, kwargs)
def pan(colc=None, rowc=None, frame=None, origin=afwImage.PARENT)
def zoom(zoomfac=None, colc=None, rowc=None, frame=None, origin=afwImage.PARENT)
def setDefaultBackend(backend)
def mtv(data, frame=None, title="", wcs=None, args, kwargs)
def line(points, frame=None, origin=afwImage.PARENT, symbs=False, ctype=None, size=0.5)
def setCallback(k, func=lsst.afw.display.noop_callback, noRaise=False, frame=None)
def getMaskPlaneColor(name, frame=None)
def getMaskTransparency(name, frame=None)
def setMaskPlaneColor(name, color=None, frame=None)