docstr: Adjust the setting_values to upgrade from a previous version
docstr_tok: ["Adjust","the","setting_values","to","upgrade","from","a","previous","version"]
code: def upgrade_settings(
      self, setting_values, variable_revision_number, module_name
  ):
      """Adjust the setting_values to upgrade from a previous version"""
      if variable_revision_number == 1:
          if setting_values[0] == IMAGE:
              # self.source, self.x_axis, "Image", self.y_axis, self.xscale, self.yscale, self.title
              new_setting_values = [
                  setting_values[0],
                  "None",
                  setting_values[1],
                  IMAGE,
                  "None",
              ] + setting_values[2:]
          else:
              # self.source, self.x_object, self.x_axis, self.y_object, self.y_axis, self.xscale, self.yscale, self.title
              new_setting_values = (
                  setting_values[:3] + [SOURCE_OBJ] + setting_values[3:]
              )
          setting_values = new_setting_values
  
          variable_revision_number = 2
  
      return setting_values, variable_revision_number
  
file_path: CellProfiler/src/frontend/cellprofiler/modules/displayscatterplot.py
imports: import numpy
  from cellprofiler_core.constants.measurement import IMAGE
  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 Text
label_desc: Use image node_id 9 for calling the DisplayScatterPlot obj's underlying member method code with example usage: obj.upgrade_settings(setting_values, variable_revision_number, module_name) and returns: setting_values,  variable_revision_number