JdavizViewerMixin#
- class jdaviz.configs.default.plugins.viewers.JdavizViewerMixin(*args, **kwargs)[source]#
Bases:
WithCache
Attributes Summary
Active cube layer in the viewer, if available.
Active image layer in the viewer, if available.
Return all marks that are not Lines/LinesGL objects (but can be subclasses)
The Jdaviz application tied to the viewer.
The Jdaviz configuration helper tied to the viewer.
Return all marks that are Lines/LinesGL objects (and not subclasses)
Methods Summary
Return current viewer axes limits.
initialize_toolbar
([default_tool_priority])Reset viewer axes limits.
set_limits
([x_min, x_max, y_min, y_max])Set viewer axes limits.
set_tick_format
(fmt, axis)Manually set the tick format of one of the axes.
Attributes Documentation
- active_cube_layer#
Active cube layer in the viewer, if available.
- active_image_layer#
Active image layer in the viewer, if available.
- custom_marks#
Return all marks that are not Lines/LinesGL objects (but can be subclasses)
- data_labels_loaded#
Deprecated since version 4.1: The data_labels_loaded function is deprecated and may be removed in a future version. Use viewer.data_menu.data_labels_loaded instead.
List of data labels loaded in this viewer.
- Returns:
- data_labelslist
list of strings
- data_labels_visible#
Deprecated since version 4.1: The data_labels_visible function is deprecated and may be removed in a future version. Use viewer.data_menu.data_labels_visible instead.
List of data labels visible in this viewer.
- Returns:
- data_labelslist
list of strings
- hub#
- jdaviz_app#
The Jdaviz application tied to the viewer.
- jdaviz_helper#
The Jdaviz configuration helper tied to the viewer.
- native_marks#
Return all marks that are Lines/LinesGL objects (and not subclasses)
- reference#
- reference_id#
- toolbar = None#
- tools#
- tools_nested = []#
- user_api#
Methods Documentation
- get_limits()[source]#
Return current viewer axes limits.
- Returns:
- x_min, x_max, y_min, y_maxfloat
Lower/upper X/Y limits, respectively.
- set_limits(x_min=None, x_max=None, y_min=None, y_max=None)[source]#
Set viewer axes limits.
- Parameters:
- x_minfloat or None, optional
lower-limit of x-axis (in current axes units)
- x_max: float or None, optional
upper-limit of x-axis (in current axes units)
- y_minfloat or None, optional
lower-limit of y-axis (in current axes units)
- y_max: float or None, optional
upper-limit of y-axis (in current axes units)