LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
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 80 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): plt.sca(axis) # make axis active disp.mtv(exp)
Definition at line 98 of file matplotlib.py.
|
protected |
Definition at line 522 of file matplotlib.py.
|
protected |
Close the display, cleaning up any allocated resources.
Definition at line 170 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 541 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 604 of file matplotlib.py.
|
protected |
Erase the display
Definition at line 532 of file matplotlib.py.
|
protected |
Definition at line 529 of file matplotlib.py.
|
protected |
Listen for a key press, returning (key, x, y)
Definition at line 726 of file matplotlib.py.
|
protected |
Return the current mask transparency
Definition at line 312 of file matplotlib.py.
|
protected |
Internal routine to display an Image or Mask on a DS9 display
Definition at line 398 of file matplotlib.py.
|
protected |
Definition at line 641 of file matplotlib.py.
|
protected |
Save the current image, mask, wcs, and XY0
Definition at line 490 of file matplotlib.py.
|
protected |
Display an Image and/or Mask on a matplotlib display
Definition at line 316 of file matplotlib.py.
|
protected |
Pan to (colc, rowc)
Definition at line 718 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 619 of file matplotlib.py.
|
protected |
Set the colormap used for the image cmap should be either the name of an attribute of pyplot.cm or an mpColors.Colormap (e.g. "gray" or pyplot.cm.gray)
Definition at line 506 of file matplotlib.py.
|
protected |
Specify mask transparency (percent)
Definition at line 307 of file matplotlib.py.
|
protected |
Put the plot at the top of the window stacking order
Definition at line 177 of file matplotlib.py.
|
protected |
Zoom by specified amount
Definition at line 690 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 198 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 210 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 265 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 279 of file matplotlib.py.
|
protected |
Definition at line 154 of file matplotlib.py.
|
protected |
Definition at line 147 of file matplotlib.py.
|
protected |
Definition at line 150 of file matplotlib.py.
|
protected |
Definition at line 142 of file matplotlib.py.
|
protected |
Definition at line 499 of file matplotlib.py.
|
protected |
Definition at line 172 of file matplotlib.py.
|
protected |
Definition at line 155 of file matplotlib.py.
|
protected |
Definition at line 149 of file matplotlib.py.
|
protected |
Definition at line 153 of file matplotlib.py.
|
protected |
Definition at line 173 of file matplotlib.py.
|
protected |
Definition at line 148 of file matplotlib.py.
|
protected |
Definition at line 152 of file matplotlib.py.
|
protected |
Definition at line 163 of file matplotlib.py.
|
protected |
Definition at line 162 of file matplotlib.py.
|
protected |
Definition at line 346 of file matplotlib.py.
|
protected |
Definition at line 151 of file matplotlib.py.
|
protected |
Definition at line 174 of file matplotlib.py.
|
protected |
Definition at line 499 of file matplotlib.py.
|
protected |
Definition at line 503 of file matplotlib.py.
|
protected |
Definition at line 495 of file matplotlib.py.
|
protected |
Definition at line 504 of file matplotlib.py.
|
protected |
Definition at line 497 of file matplotlib.py.