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)[source]#

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[source]#

Register the plotting tools according to the plot type

Dockable plot widget#

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

Docked plotting widget

Parameters:
  • parent – Parent widget

  • plot_type – Plot type

setup_layout() None[source]#

Setup layout

update_toolbar_position() None[source]#

Update toolbar position

setup_plotwidget() None[source]#

Setup plotting widget

update_color_mode() None[source]#

Update plot widget styles according to application color mode

get_plot() BasePlot[source]#

Return plot instance

update_watermark(plot: BasePlot) None[source]#

Update watermark visibility

visibility_changed(enable: bool) None[source]#

DockWidget visibility has changed