docstr: Display the image and labeling
docstr_tok: ["Display","the","image","and","labeling"]
code: def display(self, workspace, figure, cmap=None):
      """Display the image and labeling"""
      layout = (2, 2)
      dimensions = workspace.display_data.dimensions
  
      figure.set_subplots(dimensions=dimensions, subplots=layout)
  
      title = "Input image, cycle #%d" % (
          workspace.measurements.image_number,
      )
      image = workspace.display_data.x_data
      maxima_image = workspace.display_data.y_data.astype(int)
  
      ax = figure.subplot_imshow_grayscale(0, 0, image, title)
      figure.subplot_imshow_grayscale(
          1, 0, maxima_image > 0, self.y_name.value, sharexy=ax
      )
  
      if self.maxima_size.value > 1:
          if dimensions == 2:
              strel = disk(self.maxima_size.value - 1)
          else:
              strel = ball(self.maxima_size.value - 1)
          labels = dilation(maxima_image, footprint=strel)
      else:
          labels = maxima_image
  
      if not self.label_maxima:
          # Generate static colormap
          from matplotlib.colors import ListedColormap
  
          cmap = ListedColormap(self.maxima_color.value)
  
          figure.subplot_imshow_labels(
              0, 1, labels, "Detected maxima", sharexy=ax, colormap=cmap
          )
      else:
          figure.subplot_imshow_labels(
              0, 1, labels, "Detected maxima", sharexy=ax
          )
  
file_path: CellProfiler/src/frontend/cellprofiler/modules/findmaxima.py
imports: import numpy
  from skimage.feature import peak_local_max
  from skimage.morphology import disk, ball, dilation
  import scipy.ndimage
  from cellprofiler_core.image import Image
  from cellprofiler_core.module import ImageProcessing
  from cellprofiler_core.setting import Color, Binary
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import ImageSubscriber, LabelSubscriber
  from cellprofiler_core.setting.text import Integer, Float
  from cellprofiler_core.utilities.core.object import overlay_labels
label_desc: Use image node_id 5 for calling the FindMaxima obj's underlying member method code with example usage: obj.display(workspace, figure, cmap) without return types