limit the maximum number of lines that we plot