code: def pan_cb(self, setting, value):
          
          pan_x, pan_y = value[:2]
  
          self.logger.debug("pan set to %.2f,%.2f" % (pan_x, pan_y))
          self.redraw(whence=0)
docs: Handle callback related to changes in pan.