docstr: Display the resulting objects
docstr_tok: ["Display","the","resulting","objects"]
code: def display(self, workspace, figure):
      """Display the resulting objects"""
      import matplotlib
  
      gridding = workspace.display_data.gridding
      labels = workspace.display_data.labels
      objects_name = self.output_objects_name.value
      figure.set_subplots((1, 1))
      figure.subplot_imshow_labels(
          0, 0, labels, title="Identified %s" % objects_name
      )
      axes = figure.subplot(0, 0)
      for xc, yc in (
          (gridding.horiz_lines_x, gridding.horiz_lines_y),
          (gridding.vert_lines_x, gridding.vert_lines_y),
      ):
          for i in range(xc.shape[1]):
              line = matplotlib.lines.Line2D(
                  xc[:, i], yc[:, i], color="red"
              )
              axes.add_line(line)
  
imports: from cellprofiler_core.constants.module import HELP_ON_MEASURING_DISTANCES
  from cellprofiler_core.setting.choice import Choice
  from cellprofiler_core.setting.subscriber import LabelSubscriber, GridSubscriber
  from cellprofiler_core.setting.text import LabelName, Integer
  from cellprofiler_core.utilities.core.module.identify import add_object_location_measurements, add_object_count_measurements, get_object_measurement_columns
  from cellprofiler.modules import _help
  import numpy
  from centrosome.cpmorphology import centers_of_labels
  from cellprofiler_core.utilities.grid import Grid
  from cellprofiler_core.module import Module
  from cellprofiler_core.object import Objects
label_desc: Use image node_id 16 for calling the IdentifyObjectsInGrid obj's underlying member method code with example usage: obj.display(workspace, figure) without return types