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