def METHOD_NAME(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