pyplot implementation

this speeds up plotting etc... IJulia + Gadfly is quite slow...
inputs and state vars done

need to implement output vars