code: def run(self, workspace):
      m = workspace.get_measurements()
      x = m.get_current_measurement(
          self.get_x_object(), self.x_axis.value
      )
      y = m.get_current_measurement(
          self.get_y_object(), self.y_axis.value
      )
  
      data = []
      for xx, yy in zip(x, y):
          data += [[xx, yy]]
  
      bins = None
      if self.bins.value != "linear":
          bins = self.bins.value
  
      if self.show_window:
          workspace.display_data.data = data
          workspace.display_data.bins = bins
  
file_path: CellProfiler/src/frontend/cellprofiler/modules/displaydensityplot.py
imports: import matplotlib.cm
  from cellprofiler_core.module import Module
  from cellprofiler_core.setting import Measurement
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import LabelSubscriber
  from cellprofiler_core.setting.text import Integer
  from cellprofiler_core.setting.text import Text
label_desc: Use image node_id 6 for calling the DisplayDensityPlot obj's underlying member method code with example usage: obj.run(workspace) without return types