Docks#

The cdl.core.gui.docks module provides the dockable widgets for the DataLab main window.

Plot widget#

class cdl.core.gui.docks.DataLabPlotWidget(plot_type: PlotType)#

DataLab PlotWidget

This class is a subclass of plotpy.plot.PlotWidget that provides a customized widget for DataLab, with a specific set of tools and a customized appearance.

Parameters:

plot_type – Plot type

register_tools() None#

Register the plotting tools according to the plot type

Dockable plot widget#

class cdl.core.gui.docks.DockablePlotWidget(parent: QWidget, plot_type: PlotType)#

Docked plotting widget

Parameters:
  • parent – Parent widget

  • plot_type – Plot type

setup_layout() None#

Setup layout

update_toolbar_position() None#

Update toolbar position

setup_plotwidget() None#

Setup plotting widget

get_plot() BasePlot#

Return plot instance

update_watermark(plot: BasePlot) None#

Update watermark visibility

visibility_changed(enable: bool) None#

DockWidget visibility has changed