Added line plot example

Duplicated the functionality of line_plot.m.