plot to plot from ipython, needs update