Added a plotting example using matplotlib.