Update plotgen to work in ipython notebook

requires IPython 2.0, should still work in terminal (tested on mac)