some simplification
draw empty plot first, then add lines