def METHOD_NAME(self, workspace, figure):
    objects_name = self.objects_name.value
    labels = workspace.display_data.labels
    pixel_data = workspace.display_data.pixel_data
    figure.set_subplots((1, 1))
    cplabels = [dict(name=objects_name, labels=[labels])]
    if pixel_data.ndim == 3:
        figure.subplot_imshow_color(
            0, 0, pixel_data, title=objects_name, cplabels=cplabels
        )
    else:
        figure.subplot_imshow_grayscale(
            0, 0, pixel_data, title=objects_name, cplabels=cplabels
        )