Removed unused visualize_lines2 function. Changed visualize_lines function to support multiple data subsets.