Fix for Windows plotting from ipython