|
LSST Applications g00d0e8bbd7+edbf708997,g03191d30f7+9ce8016dbd,g1955dfad08+0bd186d245,g199a45376c+5137f08352,g1fd858c14a+a888a50aa2,g262e1987ae+45f9aba685,g29ae962dfc+1c7d47a24f,g2cef7863aa+73c82f25e4,g35bb328faa+edbf708997,g3fd5ace14f+eed17d2c67,g47891489e3+6dc8069a4c,g53246c7159+edbf708997,g64539dfbff+c4107e45b5,g67b6fd64d1+6dc8069a4c,g74acd417e5+f452e9c21a,g786e29fd12+af89c03590,g7ae74a0b1c+a25e60b391,g7aefaa3e3d+2025e9ce17,g7cc15d900a+2d158402f9,g87389fa792+a4172ec7da,g89139ef638+6dc8069a4c,g8d4809ba88+c4107e45b5,g8d7436a09f+e96c132b44,g8ea07a8fe4+db21c37724,g98df359435+aae6d409c1,ga2180abaac+edbf708997,gac66b60396+966efe6077,gb632fb1845+88945a90f8,gbaa8f7a6c5+38b34f4976,gbf99507273+edbf708997,gca7fc764a6+6dc8069a4c,gd7ef33dd92+6dc8069a4c,gda68eeecaf+7d1e613a8d,gdab6d2f7ff+f452e9c21a,gdbb4c4dda9+c4107e45b5,ge410e46f29+6dc8069a4c,ge41e95a9f2+c4107e45b5,geaed405ab2+e194be0d2b,w.2025.47
LSST Data Management Base Package
|
Classes | |
| class | Display |
| class | Event |
Functions | |
| _makeDisplayImpl (display, backend, *args, **kwargs) | |
| noop_callback (k, x, y) | |
| h_callback (k, x, y) | |
| setDefaultBackend (backend) | |
| getDefaultBackend () | |
| setDefaultFrame (frame=0) | |
| getDefaultFrame () | |
| incrDefaultFrame () | |
| setDefaultMaskTransparency (maskPlaneTransparency={}) | |
| setDefaultMaskPlaneColor (name=None, color=None) | |
| getDisplay (frame=None, backend=None, create=True, verbose=False, **kwargs) | |
| delAllDisplays () | |
Variables | |
| logger = logging.getLogger(__name__) | |
| str | WHITE = "white" |
| str | BLACK = "black" |
| str | RED = "red" |
| str | GREEN = "green" |
| str | BLUE = "blue" |
| str | CYAN = "cyan" |
| str | MAGENTA = "magenta" |
| str | YELLOW = "yellow" |
| str | ORANGE = "orange" |
| str | IGNORE = "ignore" |
|
protected |
Return the ``DisplayImpl`` for the named backend
Parameters
----------
display : `str`
Name of device. Should be importable, either absolutely or relative to lsst.display
backend : `str`
The desired backend
*args
Arguments passed to DisplayImpl.__init__
*kwargs
Keywords arguments passed to DisplayImpl.__init__
Examples
--------
E.g.
.. code-block:: py
import lsst.afw.display as afwDisplay
display = afwDisplay.Display(backend="ds9")
would call
.. code-block:: py
_makeDisplayImpl(..., "ds9", 1)
and import the ds9 implementation of ``DisplayImpl`` from `lsst.display.ds9`
Definition at line 53 of file interface.py.
| lsst.afw.display.interface.delAllDisplays | ( | ) |
Delete and close all known displays.
Definition at line 1022 of file interface.py.
| lsst.afw.display.interface.getDefaultBackend | ( | ) |
Definition at line 957 of file interface.py.
| lsst.afw.display.interface.getDefaultFrame | ( | ) |
Get the default frame for display.
Definition at line 965 of file interface.py.
| lsst.afw.display.interface.getDisplay | ( | frame = None, | |
| backend = None, | |||
| create = True, | |||
| verbose = False, | |||
| ** | kwargs ) |
Return a specific `Display`, creating it if need be.
Parameters
----------
frame
Desired frame (`None` => use defaultFrame (see `setDefaultFrame`)).
backend : `str`
Create the specified frame using this backend (or the default if
`None`) if it doesn't already exist. If ``backend == ""``, it's an
error to specify a non-existent ``frame``.
create : `bool`
Create the display if it doesn't already exist.
verbose : `bool`
Allow backend to be chatty.
**kwargs
Keyword arguments passed to `Display` constructor.
See also
--------
Display.getDisplay
Definition at line 996 of file interface.py.
| lsst.afw.display.interface.h_callback | ( | k, | |
| x, | |||
| y ) |
Definition at line 945 of file interface.py.
| lsst.afw.display.interface.incrDefaultFrame | ( | ) |
Increment the default frame for display.
Definition at line 971 of file interface.py.
| lsst.afw.display.interface.noop_callback | ( | k, | |
| x, | |||
| y ) |
Callback function Parameters ---------- key x y
Definition at line 933 of file interface.py.
| lsst.afw.display.interface.setDefaultBackend | ( | backend | ) |
Definition at line 953 of file interface.py.
| lsst.afw.display.interface.setDefaultFrame | ( | frame = 0 | ) |
Definition at line 961 of file interface.py.
| lsst.afw.display.interface.setDefaultMaskPlaneColor | ( | name = None, | |
| color = None ) |
Set the default mapping from mask plane names to colors.
Parameters
----------
name : `str` or `dict`
Name of mask plane, or a dict mapping names to colors.
If ``name`` is `None`, use the hard-coded default dictionary.
color : `str`
Desired color, or `None` if ``name`` is a dict.
Definition at line 981 of file interface.py.
| lsst.afw.display.interface.setDefaultMaskTransparency | ( | maskPlaneTransparency = {} | ) |
Definition at line 977 of file interface.py.
| str lsst.afw.display.interface.BLACK = "black" |
Definition at line 42 of file interface.py.
| str lsst.afw.display.interface.BLUE = "blue" |
Definition at line 45 of file interface.py.
| str lsst.afw.display.interface.CYAN = "cyan" |
Definition at line 46 of file interface.py.
| str lsst.afw.display.interface.GREEN = "green" |
Definition at line 44 of file interface.py.
| str lsst.afw.display.interface.IGNORE = "ignore" |
Definition at line 50 of file interface.py.
| lsst.afw.display.interface.logger = logging.getLogger(__name__) |
Definition at line 38 of file interface.py.
| str lsst.afw.display.interface.MAGENTA = "magenta" |
Definition at line 47 of file interface.py.
| str lsst.afw.display.interface.ORANGE = "orange" |
Definition at line 49 of file interface.py.
| str lsst.afw.display.interface.RED = "red" |
Definition at line 43 of file interface.py.
| str lsst.afw.display.interface.WHITE = "white" |
Definition at line 41 of file interface.py.
| str lsst.afw.display.interface.YELLOW = "yellow" |
Definition at line 48 of file interface.py.