LSST Applications g02d81e74bb+86cf3d8bc9,g180d380827+7a4e862ed4,g2079a07aa2+86d27d4dc4,g2305ad1205+e1ca1c66fa,g29320951ab+012e1474a1,g295015adf3+341ea1ce94,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g33d1c0ed96+0e5473021a,g3a166c0a6a+0e5473021a,g3ddfee87b4+c429d67c83,g48712c4677+f88676dd22,g487adcacf7+27e1e21933,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+b41db86c35,g5a732f18d5+53520f316c,g64a986408d+86cf3d8bc9,g858d7b2824+86cf3d8bc9,g8a8a8dda67+585e252eca,g99cad8db69+84912a7fdc,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+a2b54eae19,gb0e22166c9+60f28cb32d,gba4ed39666+c2a2e4ac27,gbb8dafda3b+6681f309db,gc120e1dc64+f0fcc2f6d8,gc28159a63d+0e5473021a,gcf0d15dbbd+c429d67c83,gdaeeff99f8+f9a426f77a,ge6526c86ff+0433e6603d,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gff1a9f87cc+86cf3d8bc9,w.2024.17
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, display, verbose=False, interpretMaskBits=True, mtvOrigin=afwImage.PARENT, fastMaskDisplay=False, reopenPlot=False, useSexagesimal=False, dpi=None, *args, **kwargs) | |
savefig (self, *args, **kwargs) | |
show_colorbar (self, show=True, where="right", axSize="5%", axPad=None, **kwargs) | |
useSexagesimal (self, useSexagesimal) | |
wait (self, prompt="[c(ontinue) p(db)] :", allowPdb=True) | |
Protected Member Functions | |
_close (self) | |
Close the display, cleaning up any allocated resources. | |
_show (self) | |
_setMaskTransparency (self, transparency, maskplane) | |
_getMaskTransparency (self, maskplane=None) | |
_mtv (self, image, mask=None, wcs=None, title="") | |
_i_mtv (self, data, wcs, title, isMask) | |
_i_setImage (self, image, mask=None, wcs=None) | |
_setImageColormap (self, cmap) | |
_buffer (self, enable=True) | |
_flush (self) | |
_erase (self) | |
_dot (self, symb, c, r, size, ctype, fontFamily="helvetica", textAngle=None) | |
_drawLines (self, points, ctype) | |
_scale (self, algorithm, minval, maxval, unit, *args, **kwargs) | |
_i_scale (self, algorithm, minval, maxval, unit, *args, **kwargs) | |
_zoom (self, zoomfac) | |
_pan (self, colc, rowc) | |
_getEvent (self, timeout=-1) | |
Provide a matplotlib backend for afwDisplay Recommended backends in notebooks are: %matplotlib notebook or %matplotlib ipympl or %matplotlib qt %gui qt or %matplotlib inline or %matplotlib osx Apparently only qt supports Display.interact(); the list of interactive backends is given by lsst.display.matplotlib.interactiveBackends
Definition at line 82 of file matplotlib.py.
lsst.display.matplotlib.matplotlib.DisplayImpl.__init__ | ( | self, | |
display, | |||
verbose = False, | |||
interpretMaskBits = True, | |||
mtvOrigin = afwImage.PARENT, | |||
fastMaskDisplay = False, | |||
reopenPlot = False, | |||
useSexagesimal = False, | |||
dpi = None, | |||
* | args, | ||
** | kwargs ) |
Initialise a matplotlib display @param fastMaskDisplay If True only show the first bitplane that's set in each pixel (e.g. if (SATURATED & DETECTED) ignore DETECTED) Not really what we want, but a bit faster @param interpretMaskBits Interpret the mask value under the cursor @param mtvOrigin Display pixel coordinates with LOCAL origin (bottom left == 0,0 not XY0) @param reopenPlot If true, close the plot before opening it. (useful with e.g. %ipympl) @param useSexagesimal If True, display coordinates in sexagesimal E.g. hh:mm:ss.ss (default:False) May be changed by calling display.useSexagesimal() @param dpi Number of dpi (passed to pyplot.figure) The `frame` argument to `Display` may be a matplotlib figure; this permits code such as fig, axes = plt.subplots(1, 2) disp = afwDisplay.Display(fig) disp.scale('asinh', 'zscale', Q=0.5) for axis, exp in zip(axes, exps): fig.sca(axis) # make axis active disp.mtv(exp)
Definition at line 100 of file matplotlib.py.
|
protected |
Definition at line 525 of file matplotlib.py.
|
protected |
Close the display, cleaning up any allocated resources.
Definition at line 176 of file matplotlib.py.
|
protected |
Draw a symbol at (col,row) = (c,r) [0-based coordinates] Possible values are: + Draw a + x Draw an x * Draw a * o Draw a circle @:Mxx,Mxy,Myy Draw an ellipse with moments (Mxx, Mxy, Myy) (argument size is ignored) An afwGeom.ellipses.Axes Draw the ellipse (argument size is ignored) Any other value is interpreted as a string to be drawn. Strings obey the fontFamily (which may be extended with other characteristics, e.g. "times bold italic". Text will be drawn rotated by textAngle (textAngle is ignored otherwise).
Definition at line 546 of file matplotlib.py.
|
protected |
Connect the points, a list of (col,row) Ctype is the name of a colour (e.g. 'red')
Definition at line 609 of file matplotlib.py.
|
protected |
Erase the display
Definition at line 537 of file matplotlib.py.
|
protected |
Definition at line 534 of file matplotlib.py.
|
protected |
Listen for a key press, returning (key, x, y)
Definition at line 731 of file matplotlib.py.
|
protected |
Return the current mask transparency
Definition at line 315 of file matplotlib.py.
|
protected |
Internal routine to display an Image or Mask on a DS9 display
Definition at line 401 of file matplotlib.py.
|
protected |
Definition at line 646 of file matplotlib.py.
|
protected |
Save the current image, mask, wcs, and XY0
Definition at line 493 of file matplotlib.py.
|
protected |
Display an Image and/or Mask on a matplotlib display
Definition at line 319 of file matplotlib.py.
|
protected |
Pan to (colc, rowc)
Definition at line 723 of file matplotlib.py.
|
protected |
Set gray scale N.b. Supports extra arguments: @param maskedPixels List of names of mask bits to ignore E.g. ["BAD", "INTERP"]. A single name is also supported
Definition at line 624 of file matplotlib.py.
|
protected |
Set the colormap used for the image cmap should be either the name of an attribute of matplotlib.cm or an mpColors.Colormap (e.g. "gray" or matplotlib.cm.gray)
Definition at line 509 of file matplotlib.py.
|
protected |
Specify mask transparency (percent)
Definition at line 310 of file matplotlib.py.
|
protected |
Put the plot at the top of the window stacking order
Definition at line 183 of file matplotlib.py.
|
protected |
Zoom by specified amount
Definition at line 695 of file matplotlib.py.
lsst.display.matplotlib.matplotlib.DisplayImpl.savefig | ( | self, | |
* | args, | ||
** | kwargs ) |
Defer to figure.savefig() Parameters ---------- args : `list` Passed through to figure.savefig() kwargs : `dict` Passed through to figure.savefig()
Definition at line 204 of file matplotlib.py.
lsst.display.matplotlib.matplotlib.DisplayImpl.show_colorbar | ( | self, | |
show = True, | |||
where = "right", | |||
axSize = "5%", | |||
axPad = None, | |||
** | kwargs ) |
Show (or hide) the colour bar Parameters ---------- show : `bool` Should I show the colour bar? where : `str` Location of colour bar: "right" or "bottom" axSize : `float` or `str` Size of axes to hold the colour bar; fraction of current x-size axPad : `float` or `str` Padding between axes and colour bar; fraction of current x-size args : `list` Passed through to colorbar() kwargs : `dict` Passed through to colorbar() We set the default padding to put the colourbar in a reasonable place for roughly square plots, but you may need to fiddle for plots with extreme axis ratios. You can only configure the colorbar when it isn't yet visible, but as you can easily remove it this is not in practice a difficulty.
Definition at line 216 of file matplotlib.py.
lsst.display.matplotlib.matplotlib.DisplayImpl.useSexagesimal | ( | self, | |
useSexagesimal ) |
Control the formatting coordinates as HH:MM:SS.ss Parameters ---------- useSexagesimal : `bool` Print coordinates as e.g. HH:MM:SS.ss iff True N.b. can also be set in Display's ctor
Are we formatting coordinates as HH:MM:SS.ss?
Definition at line 268 of file matplotlib.py.
lsst.display.matplotlib.matplotlib.DisplayImpl.wait | ( | self, | |
prompt = "[c(ontinue) p(db)] :", | |||
allowPdb = True ) |
Wait for keyboard input Parameters ---------- prompt : `str` The prompt string. allowPdb : `bool` If true, entering a 'p' or 'pdb' puts you into pdb Returns the string you entered Useful when plotting from a programme that exits such as a processCcd Any key except 'p' continues; 'p' puts you into pdb (unless allowPdb is False)
Definition at line 282 of file matplotlib.py.
|
protected |
Definition at line 160 of file matplotlib.py.
|
protected |
Definition at line 153 of file matplotlib.py.
|
protected |
Definition at line 156 of file matplotlib.py.
|
protected |
Definition at line 147 of file matplotlib.py.
|
protected |
Definition at line 502 of file matplotlib.py.
|
protected |
Definition at line 178 of file matplotlib.py.
|
protected |
Definition at line 161 of file matplotlib.py.
|
protected |
Definition at line 155 of file matplotlib.py.
|
protected |
Definition at line 159 of file matplotlib.py.
|
protected |
Definition at line 179 of file matplotlib.py.
|
protected |
Definition at line 154 of file matplotlib.py.
|
protected |
Definition at line 158 of file matplotlib.py.
|
protected |
Definition at line 169 of file matplotlib.py.
|
protected |
Definition at line 168 of file matplotlib.py.
|
protected |
Definition at line 349 of file matplotlib.py.
|
protected |
Definition at line 157 of file matplotlib.py.
|
protected |
Definition at line 180 of file matplotlib.py.
|
protected |
Definition at line 502 of file matplotlib.py.
|
protected |
Definition at line 506 of file matplotlib.py.
|
protected |
Definition at line 498 of file matplotlib.py.
|
protected |
Definition at line 507 of file matplotlib.py.
|
protected |
Definition at line 500 of file matplotlib.py.