update line plot with like class