added plot functionality to matplotlib
implemented plotting in python