LSST Applications 24.1.5,g02d81e74bb+fa3a7a026e,g180d380827+a53a32eff8,g2079a07aa2+86d27d4dc4,g2305ad1205+c0501b3732,g295015adf3+7d3e92f0ec,g2bbee38e9b+0e5473021a,g337abbeb29+0e5473021a,g33d1c0ed96+0e5473021a,g3a166c0a6a+0e5473021a,g3ddfee87b4+5dd1654d75,g48712c4677+3bf1020dcb,g487adcacf7+065c13d9cf,g50ff169b8f+96c6868917,g52b1c1532d+585e252eca,g591dd9f2cf+d7ac436cfb,g5a732f18d5+53520f316c,g64a986408d+fa3a7a026e,g858d7b2824+fa3a7a026e,g8a8a8dda67+585e252eca,g99cad8db69+a5a909b84f,g9ddcbc5298+9a081db1e4,ga1e77700b3+15fc3df1f7,ga8c6da7877+4cf350ccb2,gb0e22166c9+60f28cb32d,gba4ed39666+c2a2e4ac27,gbb8dafda3b+f991a0b59f,gc120e1dc64+9ccbfdb8be,gc28159a63d+0e5473021a,gcf0d15dbbd+5dd1654d75,gd96a1ce819+42fd0ee607,gdaeeff99f8+f9a426f77a,ge6526c86ff+0d71447b4b,ge79ae78c31+0e5473021a,gee10cc3b42+585e252eca,gff1a9f87cc+fa3a7a026e
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
lsst.display.astrowidgets.astrowidgets.DisplayImpl Class Reference
Inheritance diagram for lsst.display.astrowidgets.astrowidgets.DisplayImpl:

Public Member Functions

 __init__ (self, display, dims=None, use_opencv=False, verbose=False, *args, **kwargs)
 
 embed (self)
 
 get_viewer (self)
 
 show_color_bar (self, show=True)
 
 show_pan_mark (self, show=True, color='red')
 
 overlay_mask (self, maskImage, maskDict, maskAlpha)
 
 beginMarking (self, symb='+', ctype='cyan', size=10, label='interactive')
 
 endMarking (self)
 
 getMarkers (self, label='interactive')
 
 clearMarkers (self, label=None)
 
 linkMarkers (self, ctype='brown', label='interactive')
 
 clearLines (self)
 

Public Attributes

 logger
 

Static Public Attributes

dict markerDict = {'+': 'plus', 'x': 'cross', '.': 'circle', '*': 'circle', 'o': 'circle'}
 

Protected Member Functions

 _setMaskTransparency (self, transparency, maskplane=None)
 
 _getMaskTransparency (self, maskplane=None)
 
 _mtv (self, image, mask=None, wcs=None, title="")
 
 _buffer (self, enable=True)
 
 _flush (self)
 
 _erase (self)
 
 _dot (self, symb, c, r, size, ctype, fontFamily="helvetica", textAngle=None, label='_dot')
 
 _drawLines (self, points, ctype)
 
 _scale (self, algorithm, min, max, unit, *args, **kwargs)
 
 _show (self)
 
 _zoom (self, zoomfac)
 
 _pan (self, colc, rowc)
 
 _getEvent (self)
 

Protected Attributes

 _viewer
 
 _defaultMarkTagName
 
 _callbackDict
 
 _gingaViewer
 
 _canvas
 
 _maskTransparency
 
 _redraw
 

Detailed Description

Virtual device display implementation.

Parameters
----------
display : `lsst.afw.display.virtualDevice.DisplayImpl`
    Display object to connect to.
dims : `tuple` [`int`, `int`], optional
    Dimensions of the viewer window.
use_opencv : `bool`, optional
    Should openCV be used to speed drawing?
verbose : `bool`, optional
    Increase log verbosity?

Definition at line 81 of file astrowidgets.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.__init__ ( self,
display,
dims = None,
use_opencv = False,
verbose = False,
* args,
** kwargs )

Definition at line 97 of file astrowidgets.py.

97 def __init__(self, display, dims=None, use_opencv=False, verbose=False, *args, **kwargs):
98 virtualDevice.DisplayImpl.__init__(self, display, verbose)
99 if dims is None:
100 width, height = 1024, 768
101 else:
102 width, height = dims
103 if haveGinga:
104 self.logger = get_logger("ginga", log_stderr=True, level=40)
105 else:
106 self.logger = None
107 self._viewer = astrowidgets.ImageWidget(image_width=width, image_height=height,
108 use_opencv=use_opencv, logger=self.logger)
109 self._defaultMarkTagName = 'all'
110 self._callbackDict = dict()
111
112 # We want to display the IW, but ginga has all the handles
113 self._gingaViewer = self._viewer._viewer
114
115 bd = self._gingaViewer.get_bindings()
116 bd.enable_all(True)
117 self._canvas = self._viewer.canvas
118 self._canvas.enable_draw(False)
119 self._maskTransparency = 0.8
120 self._redraw = True
121

Member Function Documentation

◆ _buffer()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._buffer ( self,
enable = True )
protected

Definition at line 279 of file astrowidgets.py.

279 def _buffer(self, enable=True):
280 self._redraw = not enable
281

◆ _dot()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._dot ( self,
symb,
c,
r,
size,
ctype,
fontFamily = "helvetica",
textAngle = None,
label = '_dot' )
protected
Draw a symbol at (col,row) = (c,r) [0-based coordinates].

Parameters
----------
symb : `str`
    Symbol to draw.  Should be one of '+', 'x', '*', 'o', '.'.
c : `int`
    Image column for dot center (0-based coordinates).
r : `int`
    Image row for dot center (0-based coordinate).
size : `int`
    Size of dot.
fontFamily : `str`, optional
    Font to use for text symbols.
textAngle : `float`, optional
    Text rotation angle.
label : `str`, optional
    Label to store this dot in the internal list.

Definition at line 289 of file astrowidgets.py.

289 def _dot(self, symb, c, r, size, ctype, fontFamily="helvetica", textAngle=None, label='_dot'):
290 """Draw a symbol at (col,row) = (c,r) [0-based coordinates].
291
292 Parameters
293 ----------
294 symb : `str`
295 Symbol to draw. Should be one of '+', 'x', '*', 'o', '.'.
296 c : `int`
297 Image column for dot center (0-based coordinates).
298 r : `int`
299 Image row for dot center (0-based coordinate).
300 size : `int`
301 Size of dot.
302 fontFamily : `str`, optional
303 Font to use for text symbols.
304 textAngle : `float`, optional
305 Text rotation angle.
306 label : `str`, optional
307 Label to store this dot in the internal list.
308 """
309 dataTable = Table([{'x': c, 'y': r}])
310 if symb in '+x*.o':
311 self._viewer.marker = {'type': self.markerDict[symb], 'color': ctype, 'radius': size}
312 self._viewer.add_markers(dataTable, marker_name=label)
313 self._flush()
314 else:
315 Line = self._canvas.get_draw_class('line')
316 Text = self._canvas.get_draw_class('text')
317
318 for ds9Cmd in ds9Regions.dot(symb, c, r, size, fontFamily="helvetica", textAngle=None):
319 tmp = ds9Cmd.split('#')
320 cmd = tmp.pop(0).split()
321 comment = tmp.pop(0) if tmp else ""
322
323 cmd, args = cmd[0], cmd[1:]
324 if cmd == "line":
325 self._gingaViewer.canvas.add(Line(*[float(p) - 1 for p in args], color=ctype),
326 redraw=self._redraw)
327 elif cmd == "text":
328 x, y = [float(p) - 1 for p in args[0:2]]
329 self._gingaViewer.canvas.add(Text(x, y, symb, color=ctype), redraw=self._redraw)
330 else:
331 raise RuntimeError(ds9Cmd)
332 if comment:
333 print(comment)
334

◆ _drawLines()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._drawLines ( self,
points,
ctype )
protected
Connect the points, a list of (col,row).

Parameters
----------
points : `list` [`tuple` [`int`, `int`]]
    Points to connect with lines.
ctype : `str`
    Color to use.

Definition at line 335 of file astrowidgets.py.

335 def _drawLines(self, points, ctype):
336 """Connect the points, a list of (col,row).
337
338 Parameters
339 ----------
340 points : `list` [`tuple` [`int`, `int`]]
341 Points to connect with lines.
342 ctype : `str`
343 Color to use.
344 """
345 Line = self._gingaViewer.canvas.get_draw_class('line')
346 p0 = points[0]
347 for p in points[1:]:
348 self._gingaViewer.canvas.add(Line(p0[0], p0[1], p[0], p[1], color=ctype), redraw=self._redraw)
349 p0 = p
350

◆ _erase()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._erase ( self)
protected
Erase the display

Definition at line 285 of file astrowidgets.py.

285 def _erase(self):
286 """Erase the display"""
287 self._canvas.delete_all_objects()
288

◆ _flush()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._flush ( self)
protected

Definition at line 282 of file astrowidgets.py.

282 def _flush(self):
283 self._gingaViewer.redraw(whence=3)
284

◆ _getEvent()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._getEvent ( self)
protected
Listen for a key press on a frame in DS9 and return an event.

Returns
-------
event : `Ds9Event`
    Event with (key, x, y).

Definition at line 489 of file astrowidgets.py.

489 def _getEvent(self):
490 """Listen for a key press on a frame in DS9 and return an event.
491
492 Returns
493 -------
494 event : `Ds9Event`
495 Event with (key, x, y).
496 """
497 pass
498
499
500# Copy ginga's WCS implementation

◆ _getMaskTransparency()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._getMaskTransparency ( self,
maskplane = None )
protected
Return the current mask transparency.

Definition at line 170 of file astrowidgets.py.

170 def _getMaskTransparency(self, maskplane=None):
171 """Return the current mask transparency."""
172 return self._maskTransparency
173

◆ _mtv()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._mtv ( self,
image,
mask = None,
wcs = None,
title = "" )
protected
Display an Image and/or Mask on a ginga display

Parameters
----------
image : `lsst.afw.image.Image` or `lsst.afw.image.Exposure`
    Image to display.
mask : `lsst.afw.image.Mask`, optional
    Mask to use, if the input does not contain one.
wcs : `ginga.util.wcsmod.wcs_astropy`
    WCS to use, if the input does not contain one.
title : `str`, optional
    Unsupported display title.

Definition at line 174 of file astrowidgets.py.

174 def _mtv(self, image, mask=None, wcs=None, title=""):
175 """Display an Image and/or Mask on a ginga display
176
177 Parameters
178 ----------
179 image : `lsst.afw.image.Image` or `lsst.afw.image.Exposure`
180 Image to display.
181 mask : `lsst.afw.image.Mask`, optional
182 Mask to use, if the input does not contain one.
183 wcs : `ginga.util.wcsmod.wcs_astropy`
184 WCS to use, if the input does not contain one.
185 title : `str`, optional
186 Unsupported display title.
187 """
188 self._erase()
189 self._canvas.delete_all_objects()
190 self._buffer()
191 if haveGinga:
192 Aimage = AstroImage(inherit_primary_header=True)
193 Aimage.set_data(image.getArray())
194
195 self._gingaViewer.set_image(Aimage)
196
197 if wcs is not None:
198 if haveGinga:
199 _wcs = AstropyWCS(self.logger)
200 Aimage.lsst_wcs = WcsAdaptorForGinga(wcs)
201 _wcs.pixtoradec = Aimage.lsst_wcs.pixtoradec
202 _wcs.pixtosystem = Aimage.lsst_wcs.pixtosystem
203 _wcs.radectopix = Aimage.lsst_wcs.radectopix
204
205 Aimage.set_wcs(_wcs)
206 Aimage.wcs.wcs = Aimage.lsst_wcs
207
208 if mask:
209 maskColorFromName = {'BAD': 'red',
210 'SAT': 'green',
211 'INTRP': 'green',
212 'CR': 'magenta',
213 'EDGE': 'yellow',
214 'DETECTED': 'blue',
215 'DETECTED_NEGATIVE': 'cyan',
216 'SUSPECT': 'yellow',
217 'NO_DATA': 'orange',
218 'CROSSTALK': None,
219 'UNMASKEDNAN': None}
220 maskDict = dict()
221 for plane, bit in mask.getMaskPlaneDict().items():
222 color = maskColorFromName.get(plane, None)
223 if color:
224 maskDict[1 << bit] = color
225 # This value of 0.9 is pretty thick for the alpha.
226 self.overlay_mask(mask, maskDict,
227 self._maskTransparency)
228 self._buffer(enable=False)
229 self._flush()
230
std::vector< SchemaItem< Flag > > * items

◆ _pan()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._pan ( self,
colc,
rowc )
protected
Pan to (colc, rowc)

Parameters
----------
colc : `int`
    Column to center in viewer (0-based coordinate).
rowc : `int`
    Row to center in viewer (0-based coordinate).

Definition at line 477 of file astrowidgets.py.

477 def _pan(self, colc, rowc):
478 """Pan to (colc, rowc)
479
480 Parameters
481 ----------
482 colc : `int`
483 Column to center in viewer (0-based coordinate).
484 rowc : `int`
485 Row to center in viewer (0-based coordinate).
486 """
487 self._gingaViewer.set_pan(colc, rowc)
488

◆ _scale()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._scale ( self,
algorithm,
min,
max,
unit,
* args,
** kwargs )
protected
Set greyscale values.

Parameters
----------
algorithm : `str`
    Image scaling algorithm to use.
min : `float` or `str`
    Minimum value to set to black.  If a string, should be one of 'zscale' or 'minmax'.
max : `float`
    Maximum value to set to white.
unit : `str`
    Scaling units.  This is ignored.

Definition at line 425 of file astrowidgets.py.

425 def _scale(self, algorithm, min, max, unit, *args, **kwargs):
426 """Set greyscale values.
427
428 Parameters
429 ----------
430 algorithm : `str`
431 Image scaling algorithm to use.
432 min : `float` or `str`
433 Minimum value to set to black. If a string, should be one of 'zscale' or 'minmax'.
434 max : `float`
435 Maximum value to set to white.
436 unit : `str`
437 Scaling units. This is ignored.
438 """
439 self._gingaViewer.set_color_map('gray')
440 self._gingaViewer.set_color_algorithm(algorithm)
441
442 if min == "zscale":
443 self._gingaViewer.set_autocut_params('zscale', contrast=0.25)
444 self._gingaViewer.auto_levels()
445 elif min == "minmax":
446 self._gingaViewer.set_autocut_params('minmax')
447 self._gingaViewer.auto_levels()
448 else:
449 if unit:
450 print("ginga: ignoring scale unit %s" % unit, file=sys.stderr)
451
452 self._gingaViewer.cut_levels(min, max)
453

◆ _setMaskTransparency()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._setMaskTransparency ( self,
transparency,
maskplane = None )
protected
Specify mask transparency (percent); or None to not set it when loading masks.

Parameters
----------
transparency : `float`
    Transparency of the masks in percent (0-100).
maskplane : `str`, optional
     Unsupported option to only change the transparency of
    certain masks.

Definition at line 152 of file astrowidgets.py.

152 def _setMaskTransparency(self, transparency, maskplane=None):
153 """Specify mask transparency (percent); or None to not set it when loading masks.
154
155 Parameters
156 ----------
157 transparency : `float`
158 Transparency of the masks in percent (0-100).
159 maskplane : `str`, optional
160 Unsupported option to only change the transparency of
161 certain masks.
162 """
163 if maskplane is not None:
164 print("display_astrowidgets is not yet able to set transparency for individual maskplanes" % maskplane, # noqa E501
165 file=sys.stderr)
166 return
167
168 self._maskTransparency = 0.01*transparency
169

◆ _show()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._show ( self)
protected
Show the requested display.

In this case, embed it in the notebook (equivalent to
Display.get_viewer().show(); see also
Display.get_viewer().embed() N.b.  These command *must* be the
last entry in their cell

Definition at line 454 of file astrowidgets.py.

454 def _show(self):
455 """Show the requested display.
456
457 In this case, embed it in the notebook (equivalent to
458 Display.get_viewer().show(); see also
459 Display.get_viewer().embed() N.b. These command *must* be the
460 last entry in their cell
461 """
462 return self._gingaViewer.show()
463

◆ _zoom()

lsst.display.astrowidgets.astrowidgets.DisplayImpl._zoom ( self,
zoomfac )
protected
Zoom by specified amount

Parameters
----------
zoomfac : `float`
    Zoom factor to use.

Definition at line 467 of file astrowidgets.py.

467 def _zoom(self, zoomfac):
468 """Zoom by specified amount
469
470 Parameters
471 ----------
472 zoomfac : `float`
473 Zoom factor to use.
474 """
475 self._gingaViewer.scale_to(zoomfac, zoomfac)
476

◆ beginMarking()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.beginMarking ( self,
symb = '+',
ctype = 'cyan',
size = 10,
label = 'interactive' )
Begin interactive mark adding.

Parameters
----------
symb : `str`, optional
    Symbol to use.  Should be one of '+', 'x', '*', 'o', '.'.
ctype : `str`, optional
    Color of markers.
size : `float`, optional
    Size of marker.
label : `str`
    Label to store this marker in the internal list.

Definition at line 351 of file astrowidgets.py.

351 def beginMarking(self, symb='+', ctype='cyan', size=10, label='interactive'):
352 """Begin interactive mark adding.
353
354 Parameters
355 ----------
356 symb : `str`, optional
357 Symbol to use. Should be one of '+', 'x', '*', 'o', '.'.
358 ctype : `str`, optional
359 Color of markers.
360 size : `float`, optional
361 Size of marker.
362 label : `str`
363 Label to store this marker in the internal list.
364 """
365 self._viewer.start_marking(marker_name=label,
366 marker={'type': self.markerDict[symb], 'color': ctype, 'radius': size})
367

◆ clearLines()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.clearLines ( self)
Remove all lines from the display.

Definition at line 421 of file astrowidgets.py.

421 def clearLines(self):
422 """Remove all lines from the display."""
423 self._gingaViewer.canvas.deleteObjects(list(self._gingaViewer.canvas.get_objects_by_kind('line')))
424

◆ clearMarkers()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.clearMarkers ( self,
label = None )
Clear markers.

Parameters
----------
label : `str`, optional
    Marker label to clear.  If None, all markers are cleared.

Definition at line 387 of file astrowidgets.py.

387 def clearMarkers(self, label=None):
388 """Clear markers.
389
390 Parameters
391 ----------
392 label : `str`, optional
393 Marker label to clear. If None, all markers are cleared.
394 """
395 if label:
396 self._viewer.remove_markers(label)
397 else:
398 self._viewer.reset_markers()
399

◆ embed()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.embed ( self)
Attach this display to the output of the current cell.

Definition at line 122 of file astrowidgets.py.

122 def embed(self):
123 """Attach this display to the output of the current cell."""
124 return self._viewer
125

◆ endMarking()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.endMarking ( self)
End interactive mark adding.

Definition at line 368 of file astrowidgets.py.

368 def endMarking(self):
369 """End interactive mark adding."""
370 self._viewer.stop_marking()
371

◆ get_viewer()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.get_viewer ( self)
Return the ginga viewer

Definition at line 126 of file astrowidgets.py.

126 def get_viewer(self):
127 """Return the ginga viewer"""
128 return self._viewer
129

◆ getMarkers()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.getMarkers ( self,
label = 'interactive' )
Get list of markers.

Parameters
----------
label : `str`, optional
    Marker label to return.

Returns
-------
table : `astropy.table.Table`
    Table of markers with the given label.

Definition at line 372 of file astrowidgets.py.

372 def getMarkers(self, label='interactive'):
373 """Get list of markers.
374
375 Parameters
376 ----------
377 label : `str`, optional
378 Marker label to return.
379
380 Returns
381 -------
382 table : `astropy.table.Table`
383 Table of markers with the given label.
384 """
385 return self._viewer.get_markers(marker_name=label)
386

◆ linkMarkers()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.linkMarkers ( self,
ctype = 'brown',
label = 'interactive' )
Connect markers with lines.

Parameters
----------
ctype : `str`, optional
    Color to draw the lines.
label : `str`, optional
    Marker label to connect.  Lines are drawn in the order
    found in the table.

Definition at line 400 of file astrowidgets.py.

400 def linkMarkers(self, ctype='brown', label='interactive'):
401 """Connect markers with lines.
402
403 Parameters
404 ----------
405 ctype : `str`, optional
406 Color to draw the lines.
407 label : `str`, optional
408 Marker label to connect. Lines are drawn in the order
409 found in the table.
410 """
411 Line = self._gingaViewer.canvas.get_draw_class('line')
412 table = self._viewer.get_markers(marker_name=label)
413
414 x0, y0 = (0, 0)
415 for rowCount, (x, y) in enumerate(table.iterrows('x', 'y')):
416 if rowCount != 0:
417 self._gingaViewer.canvas.add(Line(x0, y0, x, y, color=ctype), redraw=self._redraw)
418 x0 = x
419 y0 = y
420

◆ overlay_mask()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.overlay_mask ( self,
maskImage,
maskDict,
maskAlpha )
Draw mask onto the image display.

Parameters
----------
maskImage : `lsst.afw.image.Mask`
    Mask to display.
maskDict : `dict` [`str`, `str`]
    Dictionary of mask plane names to colors.
maskAlpha : `float`
    Transparency to display the mask.

Definition at line 231 of file astrowidgets.py.

231 def overlay_mask(self, maskImage, maskDict, maskAlpha):
232 """Draw mask onto the image display.
233
234 Parameters
235 ----------
236 maskImage : `lsst.afw.image.Mask`
237 Mask to display.
238 maskDict : `dict` [`str`, `str`]
239 Dictionary of mask plane names to colors.
240 maskAlpha : `float`
241 Transparency to display the mask.
242 """
243 import numpy as np
244 from ginga.RGBImage import RGBImage
245 from ginga import colors
246
247 maskArray = maskImage.getArray()
248 height, width = maskArray.shape
249 maskRGBA = np.zeros((height, width, 4), dtype=np.uint8)
250 nSet = np.zeros_like(maskArray, dtype=np.uint8)
251
252 for maskValue, maskColor in maskDict.items():
253 r, g, b = colors.lookup_color(maskColor)
254 isSet = (maskArray & maskValue) != 0
255 if (isSet == 0).all():
256 continue
257
258 maskRGBA[:, :, 0][isSet] = 255 * r
259 maskRGBA[:, :, 1][isSet] = 255 * g
260 maskRGBA[:, :, 2][isSet] = 255 * b
261
262 nSet[isSet] += 1
263
264 maskRGBA[:, :, 3][nSet == 0] = 0
265 maskRGBA[:, :, 3][nSet != 0] = 255 * maskAlpha
266
267 nSet[nSet == 0] = 1
268 for C in (0, 1, 2):
269 maskRGBA[:, :, C] //= nSet
270
271 rgb_img = RGBImage(data_np=maskRGBA)
272 Image = self._viewer.canvas.get_draw_class('image')
273 maskImageRGBA = Image(0, 0, rgb_img)
274
275 if "mask_overlay" in self._gingaViewer.canvas.get_tags():
276 self._gingaViewer.canvas.delete_object_by_tag("mask_overlay")
277 self._gingaViewer.canvas.add(maskImageRGBA, tag="mask_overlay")
278

◆ show_color_bar()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.show_color_bar ( self,
show = True )
Show (or hide) the colour bar.

Parameters
----------
show : `bool`, optional
    Should the color bar be shown?

Definition at line 130 of file astrowidgets.py.

130 def show_color_bar(self, show=True):
131 """Show (or hide) the colour bar.
132
133 Parameters
134 ----------
135 show : `bool`, optional
136 Should the color bar be shown?
137 """
138 self._gingaViewer.show_color_bar(show)
139

◆ show_pan_mark()

lsst.display.astrowidgets.astrowidgets.DisplayImpl.show_pan_mark ( self,
show = True,
color = 'red' )
Show (or hide) the pan mark.

Parameters
----------
show : `bool`, optional
    Should the pan marker be shown?
color : `str`, optional
    What color should the pan mark be?

Definition at line 140 of file astrowidgets.py.

140 def show_pan_mark(self, show=True, color='red'):
141 """Show (or hide) the pan mark.
142
143 Parameters
144 ----------
145 show : `bool`, optional
146 Should the pan marker be shown?
147 color : `str`, optional
148 What color should the pan mark be?
149 """
150 self._gingaViewer.show_pan_mark(show, color)
151

Member Data Documentation

◆ _callbackDict

lsst.display.astrowidgets.astrowidgets.DisplayImpl._callbackDict
protected

Definition at line 110 of file astrowidgets.py.

◆ _canvas

lsst.display.astrowidgets.astrowidgets.DisplayImpl._canvas
protected

Definition at line 117 of file astrowidgets.py.

◆ _defaultMarkTagName

lsst.display.astrowidgets.astrowidgets.DisplayImpl._defaultMarkTagName
protected

Definition at line 109 of file astrowidgets.py.

◆ _gingaViewer

lsst.display.astrowidgets.astrowidgets.DisplayImpl._gingaViewer
protected

Definition at line 113 of file astrowidgets.py.

◆ _maskTransparency

lsst.display.astrowidgets.astrowidgets.DisplayImpl._maskTransparency
protected

Definition at line 119 of file astrowidgets.py.

◆ _redraw

lsst.display.astrowidgets.astrowidgets.DisplayImpl._redraw
protected

Definition at line 120 of file astrowidgets.py.

◆ _viewer

lsst.display.astrowidgets.astrowidgets.DisplayImpl._viewer
protected

Definition at line 107 of file astrowidgets.py.

◆ logger

lsst.display.astrowidgets.astrowidgets.DisplayImpl.logger

Definition at line 104 of file astrowidgets.py.

◆ markerDict

dict lsst.display.astrowidgets.astrowidgets.DisplayImpl.markerDict = {'+': 'plus', 'x': 'cross', '.': 'circle', '*': 'circle', 'o': 'circle'}
static

Definition at line 95 of file astrowidgets.py.


The documentation for this class was generated from the following file: