Quick hack to draw lines only within the bounding box
Finished new plotting mechanism to show only lines within the bounding box