def _creteCaption(self, scatt_id): transpose = self.transpose[scatt_id] bands = self.scatt_mgr.GetBands() # TODO too low level b1_id, b2_id = idScattToidBands(scatt_id, len(bands)) x_b = bands[b1_id].split('@')[0] y_b = bands[b2_id].split('@')[0] if transpose: tmp = x_b x_b = y_b y_b = tmp return "%s x: %s y: %s" % (_("scatter plot"), x_b, y_b)