code: def draw_peaks(self, x, peaks, line_color):
          
  
          y1 = self.image_height * 0.5 - peaks[0] * (self.image_height - 4) * 0.5
          y2 = self.image_height * 0.5 - peaks[1] * (self.image_height - 4) * 0.5
  
          if self.previous_y:
              self.draw.line(
                  [self.previous_x, self.previous_y, x, y1, x, y2], line_color)
          else:
              self.draw.line([x, y1, x, y2], line_color)
  
          self.draw_anti_aliased_pixels(x, y1, y2, line_color)
          self.previous_x, self.previous_y = x, y2
docs: Draw 2 peaks at x