simplify points before drawing
fix i argument to get_timestamp, get_value